Skip to content

Conversation

Shedal
Copy link
Contributor

@Shedal Shedal commented Aug 20, 2025

Summary

add custom content type ID support for content type creation

Description

Added an optional contentTypeId argument to the tool create_content_type.
Added a test that verifies the content type is created with a custom ID.

Motivation and Context

We need this capability to allow specifying custom content type IDs during content model migration.

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

@Shedal Shedal requested a review from a team as a code owner August 20, 2025 22:16
@elylucasctfl elylucasctfl changed the base branch from main to create-content-type-with-id August 25, 2025 20:18
@elylucasctfl elylucasctfl merged commit cb158f4 into contentful:create-content-type-with-id Aug 25, 2025
6 of 7 checks passed
elylucasctfl added a commit that referenced this pull request Aug 25, 2025
)

* feat: add custom content type ID support for content type creation (#115)

Co-authored-by: Ely  Lucas <[email protected]>

* chore: converting tests to use new mockClient setup

* chore: cleanup

---------

Co-authored-by: Dmytro Shevchenko <[email protected]>
@elylucasctfl
Copy link
Contributor

Hi @Shedal , this update is in v1.2.0, thanks for the contribution!

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