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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer token set to access_token or API key. |
Read
get: /v1/environments/{environment_id}/content_types/{content_type}
Reads a content type.
Path Parameters
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer 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
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer token set to access_token or API key. |
Body
Set the JSON descriptor object as the formData
key in the the JSON body.
Parameter | Type | Description |
---|---|---|
body | JSON | Document to save |
Delete
delete: /v1/environments/{environment_id}/content_types/{content_type}
Deletes a content type.
Path Parameters
Parameter | Type | Description |
---|---|---|
environment_id | String | The associated environment id |
content_type | String | The associated content type |
Headers
Parameter | Type | Description |
---|---|---|
authorization | string | Bearer token set to access_token or API key. |