Skip to content

feat: add Template create, update, and delete methods [DX-900] [DX-901] [DX-902]#2969

Open
Michael Pham (michaelphamcf) wants to merge 4 commits intofeat/dx-898-899-template-getmany-getfrom
feat/dx-900-901-902-template-create-update-delete
Open

feat: add Template create, update, and delete methods [DX-900] [DX-901] [DX-902]#2969
Michael Pham (michaelphamcf) wants to merge 4 commits intofeat/dx-898-899-template-getmany-getfrom
feat/dx-900-901-902-template-create-update-delete

Conversation

@michaelphamcf
Copy link
Copy Markdown
Contributor

Summary

Adds create, update, and delete methods for the Template entity (DX-900, DX-901, DX-902).

Description

DX-900 — create:

  • Adds create to lib/adapters/REST/endpoints/template.ts (POST /templates)
  • Adds create to Template MRActions and MakeRequest overload in lib/common-types.ts
  • Adds create to TemplatePlainClientAPI in lib/plain/entities/template.ts
  • Wires template.create in lib/plain/plain-client.ts
  • 1 unit test

DX-901 — update:

  • Adds update to lib/adapters/REST/endpoints/template.ts (PUT /templates/:templateId)
  • Sends X-Contentful-Version header from sys.version for optimistic locking
  • Adds update to Template MRActions and MakeRequest overload in lib/common-types.ts
  • Adds update to TemplatePlainClientAPI in lib/plain/entities/template.ts
  • Wires template.update in lib/plain/plain-client.ts
  • 1 unit test

DX-902 — delete:

  • Adds del to lib/adapters/REST/endpoints/template.ts (DELETE /templates/:templateId)
  • Adds delete to Template MRActions and MakeRequest overload in lib/common-types.ts
  • Adds delete to TemplatePlainClientAPI in lib/plain/entities/template.ts
  • Wires template.delete in lib/plain/plain-client.ts
  • 1 unit test

This branch is based on feat/exo with feat/dx-897-scaffold-template-entity and feat/dx-898-899-template-getmany-get merged in.

Motivation and Context

Template is an ExO entity for instantiating Experiences. This continues the incremental SDK wrapper series (DX-897–904) adding write and delete capabilities after the read methods from DX-898/899.

PR Checklist

  • I have read the CONTRIBUTING.md file
  • All commits follow conventional commits
  • Documentation is updated (if necessary)
  • PR doesn't contain any sensitive information
  • There are no breaking changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bito-code-review
Copy link
Copy Markdown

bito-code-review bot commented Apr 7, 2026

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the branch exclusion settings here, or contact your Bito workspace admin at michael.pearce@contentful.com.

@michaelphamcf Michael Pham (michaelphamcf) changed the title feat(template): add Template create, update, and delete methods [DX-900] [DX-901] [DX-902] feat: add Template create, update, and delete methods [DX-900] [DX-901] [DX-902] Apr 7, 2026
@michaelphamcf Michael Pham (michaelphamcf) changed the base branch from feat/exo to feat/dx-898-899-template-getmany-get April 7, 2026 17:32
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.

1 participant