Content Type API

API methods for accessing content types

List

GET: /v1/environments/{environment_id}/content_types

Retrieves collection of content types from a specific environent.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.

Read

get: /v1/environments/{environment_id}/content_types/{content_type}

Reads a content type.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.

Upsert

post: /v1/environments/{environment_id}/content_types/{content_type}

Update for creates a content type.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.

Body

Set the JSON descriptor object as the formData key in the the JSON body.

ParameterTypeDescription
bodyJSONDocument to save

Delete

delete: /v1/environments/{environment_id}/content_types/{content_type}

Deletes a content type.

Path Parameters

ParameterTypeDescription
environment_idStringThe associated environment id
content_typeStringThe associated content type

Headers

ParameterTypeDescription
authorizationstringBearer token set to access_token or API key.