Create a new component type

Authentication

AuthorizationBearer
Contentful Management API token

Path parameters

spaceIdstringRequired
environmentIdstringRequired

Query parameters

access_tokenstringOptional

Request

Body
namestringRequired
descriptionstringRequired
viewportslist of objectsRequired
contentPropertieslist of objectsRequired
designPropertieslist of objectsRequired
dimensionKeyMapobjectRequired
componentTreelist of objectsOptional
slotslist of objectsOptional
metadataobjectOptional
dataAssemblieslist of objectsOptional
sourceobject or nullOptional

Response

201
sysobject
namestring
descriptionstring
viewportslist of objects
contentPropertieslist of objects
designPropertieslist of objects
dimensionKeyMapobject
componentTreelist of objects
slotslist of objects
metadataobject
dataAssemblieslist of objects
sourceobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error