Updates the content type at the current location or create a new one if it doesn't already exist.
1 min
PUT
/api/episerver/v3.0/contenttypes/{id}
idstring<uuid>The identifier of the content type.
allowedDowngradesobjectDefines which types of downgrades that are allowed.
allowedUpgradesobjectDefines which types of upgrades that are allowed.
acceptstringGenerated from available response content types
bodyobjectThe content type that should be created or updated.
200OK
201Created
400Bad Request
403Forbidden
409Conflict
curl --request PUT \
--url '/api/episerver/v3.0/contenttypes/{id}?allowedDowngrades=object&allowedUpgrades=object' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"name": "",
"baseType": ""
}'