Get a single content type
Log in to add to favouritesRequesting an individual content type can be achieved by using the get method on the client's contentTypes property.
get(contentTypeId: string): Promise<ContentType>
Parameters
Name | Type | Description |
---|---|---|
contentTypeId | string | The id of the content type |
Returns
A Promise that will resolve with the Content Type
ContensisClient.contentTypes.get('<content-type-id>').then(function (contentType) {
console.log(contentType.name['en-GB']);
});