Skip to main content

Get a single content type

Log in to add to favourites

Requesting 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

JavaScript
ContensisClient.contentTypes.get('<content-type-id>').then(function (contentType) {
  console.log(contentType.name['en-GB']);
});

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