Skip to main content
Browse Documentation

List content types

Created by Alex Pop on 19 Dec 2019

Gets the content types for a project by passing an optional ContentTypeListOptions object as an argument.

list(options?: ContentTypeListOptions): Promise<ContentType[]>

Returns

A Promise that will resolve with an array of ContentType objects.

Example

client.contentTypes.list({    
    versionStatus: 'published',
    dataFormat: 'entry'
  })
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call fetch error: ', error);      
});