Skip to content

feat: add App API Design Studio folder & email methods - #239

Merged
mike-engel merged 2 commits into
mainfrom
cdp-6272
Jul 14, 2026
Merged

mike-engel merged 2 commits into
mainfrom
cdp-6272

Conversation

@mike-engel

@mike-engel mike-engel commented Jul 13, 2026 •

Copy link
Copy Markdown
Collaborator

This is another set of the App API backfill which adds the 10 Design Studio folder and email endpoints to APIClient (languages + components are in #240):

Method Endpoint
listDesignStudioFolders GET /v1/design_studio/folders
createDesignStudioFolder POST /v1/design_studio/folders
getDesignStudioFolder GET /v1/design_studio/folders/{id}
updateDesignStudioFolder PUT /v1/design_studio/folders/{id} (204)
deleteDesignStudioFolder DELETE /v1/design_studio/folders/{id} (204)
listDesignStudioEmails GET /v1/design_studio/emails
createDesignStudioEmail POST /v1/design_studio/emails
getDesignStudioEmail GET /v1/design_studio/emails/{id}
updateDesignStudioEmail PUT /v1/design_studio/emails/{id} (204)
deleteDesignStudioEmail DELETE /v1/design_studio/emails/{id} (204)

Assisted by AI 🤖


Note

Medium Risk
Large additive surface area and a shared HTTP change for multipart uploads; behavior is mostly thin wrappers over remote APIs with solid test coverage.

Overview
Extends App API coverage with Design Studio (folders, emails, email translations, components), Assets (files and folders), and matching docs/app.md reference.

Design Studio list calls use page-based filters/sorting (not cursor pagination), with typed inputs and the usual MissingParamError validation. Assets adds createAsset via multipart/form-data: the request layer gains postForm / formOptions (no caller Content-Type so fetch sets the boundary), and uploads derive MIME type from filename when needed so parts are not sent as application/octet-stream.

Unit tests cover query strings, validation, and form bodies; live integration tests exercise create/read/update/delete round-trips where the workspace allows.

Reviewed by Cursor Bugbot for commit 6f64be9. Bugbot is set up for automated code reviews on this repo. Configure here.

Batch 8. Adds the 10 Design Studio folder + email endpoints to APIClient:
list/create/get/update/delete for both folders and emails.

Verified against the services backend (ext_api/design_studio/router.go +
designstudio/dsapi/*), not the OpenAPI spec: page-based list filters,
tri-state parent_folder_id, and the email content/envelope/transformers
bodies. PUT/DELETE return 204 (empty body -> {} in the request layer).

Includes unit tests (100% coverage), live round-trip coverage, and docs.
@mike-engel mike-engel changed the title feat: add App API Design Studio folder & email methods (CDP-6272) feat: add App API Design Studio folder & email methods Jul 14, 2026
@mike-engel mike-engel self-assigned this Jul 14, 2026
karngyan
karngyan previously approved these changes Jul 14, 2026
@mike-engel
mike-engel merged commit 2c55166 into main Jul 14, 2026
11 checks passed
@mike-engel
mike-engel deleted the cdp-6272 branch July 14, 2026 11:33
@mike-engel mike-engel mentioned this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants