Create content type
documentedCreate a new content type.
POST /spaces/{space_id}/content_typesContent typesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.contentful.com/spaces/{{$space_id}}/environments/{{$environment_id}}/content_types" \
-X POST \
-H "Authorization: Bearer {{CONTENTFUL_CMA_TOKEN}}" \
-H "Content-Type: application/vnd.contentful.management.v1+json" \
-H "Accept: application/json" \
-d '{"name":"{{$name}}","description":"{{$description}}","displayField":"{{$displayField}}","fields":[{"id":"title","name":"{{$title}}","type":"Text","required":true},{"id":"slug","name":"{{$slug}}","type":"Symbol","required":true},{"id":"body","name":"{{$body}}","type":"Text"}]}'