Skip to main content
Browse Documentation

Get a single content type

Created by Richard Saunders, last modified by noellambertwork on 21 Dec 2017

Requesting an individual content type can be achieved by using the get method on the client's contentTypes property.

get(contentTypeId: string): Promise<ContentType>


Name Type Description
contentTypeId string The id of the content type


A Promise that will resolve with the Content Type

<span id="content_type_name"></span>
(function(Zengenti) {
    // Create a client
    var client = Zengenti.Contensis.Client.create();

    $(function() {
        // Get the movie content type
        client.contentTypes.get('movie').then(function(movieContentType) {       


        }, function(error) {