Update an existing type.

Use the /types/{id} end-point to update an existing content type within the database.
User roles: admin, manager

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Provide the ID of the content type document that you want to update.

Query Params
boolean
Defaults to false

Specifies whether revision checking should be disabled.

string

Specify additional update directives.
Valid directives are:

  • rebuild-path-filename: Instructs the service to re-generate the last fragment of the specified document path, by converting the specified document name into a filesystem friendly filename.
Body Params

Provide all the updated type fields that you want to save to this content type document.

An existing type document.

string
length ≥ 1

The ID of the type document.

string
required
length ≥ 1

The current revision of the type document.

string
required
length ≥ 1

The name of the type document.

string
required

The description of the type document.

string
enum
required

the type document classification.

Allowed:
kind
array of strings

Identifies the sub-classification of the type document.
Valid values include:

  • custom-ui: This type document has a custom user interface defined
  • embedded: This type document can be included within another type document
  • standalone: This type document can be used to create normal content items
  • page: This type document can be used to create site pages
  • landing-page: This type document can be used to create landing pages
  • email: This type document can be used to create email messages
  • site: This type document can be used to create sites
kind
Allowed:
contentThumbnail
object

The thumbnail settings for content using this type.

string
required
length ≥ 1
string

The display name of the user that created this Type document. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'.
This field is read only.

date-time
length ≥ 1

The created date of this type document in ISO 8601 with the format YYYY-MM-DDThh:mm:ss.sssZ. This field is read only.

string
length ≥ 1
string

The display name of the last user that modified this Type document. This field is only returned when the 'include' query string option is set to 'ALL' or 'metadata'.
This field is read only.

date-time
length ≥ 1

The last modified date of this type document in ISO 8601 with the format YYYY-MM-DDThh:mm:ss.sssZ. This field is read only.

string

Optional path to associate with this type document. Must be unique. Will default to filesystem friendly version of /[NAME].

tags
array of strings
required
tags*
thumbnail
object

The reference to the asset that should act as the thumbnail of this type.
The thumbnail can be referred to by either id or path.

string
enum
required

the workflow status.

Allowed:
string

Only present on Drafts created from existing Ready items, this property indicates the ID of the associated Ready item

uiExtensions
object

Specifies any user interface extensions registered on this type document.

icon
array of strings

Specifies the type of icon to show for this type document within the Type user interface's element palette
Only used when the type document has a kind that includes 'embedded'

icon
elements
array of objects
required

Represents the elements present on this Type document.

elements*
links
object
schema
object

The Json-Schema representation of this Type document, which can be used to validate a content-item using this Type.
This is the same document returned from the '/types/{id}/schema' end-point and is only returned when the 'include' query string option is set to 'ALL' or 'schema'

mappings
object

The layout mappings of this Type document. This field is only returned when the 'include' query string option is set to 'ALL' or 'mappings'.

boolean
Defaults to false

Indicates whether this item is a 'system item' or not.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json