Cookie control banner

We use cookies to ensure our website works properly, deliver personalised advertising, and collect usage statistics to help us improve the website. You may change your settings at any time or accept the default settings. For more information, please refer to our privacy policy.
Skip to main content

Update a content type

Log in to add to favourites

Updates a content type resource.

update(contentType: ContentType): Promise<ContentType>

Returns

A Promise that will resolve with a ContentType object.

Example

JavaScript
existingContentType.description['en-GB'] = 'A movie content type';

client.contentTypes.update(existingContentType)
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call fetch error: ', error);      
  });

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request