dc-management-sdk-js
    Preparing search index...

    Class ContentType

    Class representing the Content Type resource. Content types are JSON schemas that define a type of content to be created, including its structure, format and validation rules.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _links?: Map<string, HalLink>
    contentTypeUri?: string

    URI that describes where to locate the JSON schema definition for this content type

    id?: string

    Unique id generated on creation

    related: {
        archive: () => Promise<ContentType>;
        contentTypeSchema: {
            get: () => Promise<ContentTypeCachedSchema>;
            update: (
                mutation?: ContentTypeCachedSchema,
            ) => Promise<ContentTypeCachedSchema>;
        };
        unarchive: () => Promise<ContentType>;
        update: (mutation: ContentType) => Promise<ContentType>;
    } = ...

    Resources and actions related to a ContentType

    Type declaration

    Object containing display settings for the content type

    status: Status

    Lifecycle status of the content type

    Methods

    • POST to an action endpoint with no resource response returned.

      Parameters

      • name: string
      • params: any
      • data: any
      • method: POST | PUT | PATCH = HttpMethod.POST

      Returns Promise<void>