Skip to main content
Browse Documentation

Update a content type

Created by Alex Pop on 19 Dec 2019

Updates a content type resource.

update(contentType: ContentType): Promise<ContentType>

Returns

A Promise that will resolve with a ContentType object.

Example

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);      
  });