Menu
Create Content Type
Create a content type
POST
/spaces/{spaceId}/environments/{environmentId}/content_typesUse it in a workflow
- Add a step and choose the Contentful connector.
- Pick the Create Content Type action (under Contentful Content Management API).
- Fill in the fields below, then reference the result from later steps as
{{createContentType.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"fields": [
{
"id": "string",
"localized": false,
"name": "string",
"required": false,
"type": "Symbol",
"items": {},
"linkType": "Entry",
"defaultValue": {},
"omitted": false,
"disabled": false,
"validations": [
{
"size": {},
"linkContentType": {},
"linkMimetypeGroup": {},
"in": {},
"regexp": {},
"unique": {},
"range": {},
"dateRange": {},
"assetImageDimensions": {},
"assetFileSize": {},
"assetFileType": {},
"enabledNodeTypes": {}
}
]
}
],
"name": "string",
"description": "string",
"displayField": "string"
}
Response
Returns 201 with an object. Read it in later steps with {{createContentType.response.data.<field>}}.
{
"fields": [
{
"id": "string",
"localized": false,
"name": "string",
"required": false,
"type": "Symbol",
"items": {},
"linkType": "Entry",
"defaultValue": {},
"omitted": false,
"disabled": false,
"validations": [
{
"size": {},
"linkContentType": {},
"linkMimetypeGroup": {},
"in": {},
"regexp": {},
"unique": {},
"range": {},
"dateRange": {},
"assetImageDimensions": {},
"assetFileSize": {},
"assetFileType": {},
"enabledNodeTypes": {}
}
]
}
],
"name": "string",
"sys": {
"id": "string",
"type": "string",
"space": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"createdBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"version": 0,
"environment": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedBy": {
"sys": {
"id": "string",
"type": "string",
"linkType": "string"
}
},
"updatedAt": "2025-01-01T00:00:00Z"
},
"description": "string",
"displayField": "string"
}
Need more? See the Contentful guide for connection setup and behaviour shared by every action.
Was this page helpful?