v1
latestOpenAPI 3.0.02026-07-2417611.8 MBRetrieve an existing type.
Use the /types/{id} end-point to retrieve an existing content type from the database.<br />User roles: admin, manager, editor, viewer
Path parameters
Provide the ID of the content type document that you want to retrieve.
Query parameters
Only the content type fields that are specified here are returned for each result. Any type document field is a valid value and can be specified as a comma-separated list.
Specify additional fields to include with each result. Valid options are:
- links: Adds the 'links' section (see '#/definitions/DocumentLinks') to the response.
- metadata: Adds additional details such as creator and last modifier to the response.
- schema: Adds the 'schema' section to the response.
- mappings: Add the 'mappings' section to the response.
- all: Adds all current and future additional fields to the response.
When used in-conjunction with the 'fields' option, both the fields that are specified in the 'fields' option and the fields in the 'include' option are returned.
Headers
Provide an Etag value from a previous request to check whether the content type document retrieved is the most recent version. If the content type document is the most recent version, the call returns a 304 ( Not modified) message instead of sending the content type document back.
Response
Successfully retrieved the existing content type document that matches the ID that you provided.
Example response
{
"path": "/myTypes/SampleType.json",
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/47d535ff288b3bd8383009abf82a9ea8"
}
}