v1
latestOpenAPI 3.0.02026-07-2417611.8 MBRetrieve an existing type by its path.
Use the /types/by-path end-point to retrieve an existing content type from the database.<br />User roles: admin, manager, editor, viewer
Query parameters
The path of the content type to retrieve.
A comma separated list that when specified, limits the fields returned to just those specified. Any type document field is a valid value.
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
Success.
Example response
{
"path": "/myTypes/SampleType.json",
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/47d535ff288b3bd8383009abf82a9ea8"
}
}