Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Assets API
  4. Asset Types

Asset Types

markdownView as Markdown

Define and manage asset types and their associated fields.

Create an asset type

POSThttps://am-api.contentstack.com/api/asset_types

The Create an asset type request creates a new asset type in your organization. An asset type defines a category of assets, such as their content type, file extension, and associated fields.

For an asset type that is not a system asset type, the request returns 202 with the new asset type and a job_id: a background job then associates existing assets that match its content_type and file_extension.

Hide Parameters

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Body Parameters

titlerequiredstring

The title of the asset type.

descriptionoptionalstring

A description of the asset type.

uidrequiredstring

The unique identifier of the asset type.

content_typerequiredstring

The MIME type associated with the asset type.

file_extensionrequiredstring

The file extension associated with the asset type.

categoryoptionalstring

The category of the asset type.

fieldsoptionalstring[]

The uid values of the fields to associate with the asset type.

Sample Request
1234567891011
{
  "title": "string",
  "description": "string",
  "uid": "string",
  "content_type": "string",
  "file_extension": "string",
  "category": "string",
  "fields": [
    "string"
  ]
}
Sample Response
Status|201 Created
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
{
  "notice": "string",
  "asset_type": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "content_type": "string",
    "file_extension": "string",
    "category": "string",
    "preview_image_id": "string",
    "preview_image_url": "string",
    "fields": [
      {
        "_id": "string",
        "uid": "string",
        "title": "string",
        "display_type": "string",
        "description": "string",
        "field_metadata": {
          "default_value": null,
          "instruction": "string",
          "helper_text": "string",
          "placeholder_text": "string",
          "max_multiple_count": 1,
          "multiple_value": true,
          "min": 0,
          "max": 0,
          "format": "string",
          "data_type": "string",
          "hide_time": true,
          "choices": [
            {}
          ]
        },
        "is_mandatory": true,
        "is_multiple": true,
        "is_system": true,
        "child": [
          {}
        ],
        "path": [
          {
            "uid": "string",
            "title": "string"
          }
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "created_by": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "updated_at": "2019-08-24T14:15:22Z",
    "updated_by": "string"
  },
  "job_id": "string"
}

Get all asset types

GEThttps://am-api.contentstack.com/api/asset_types

Update an asset type

PUThttps://am-api.contentstack.com/api/asset_types/{asset_type_uid}

Get an asset type

GEThttps://am-api.contentstack.com/api/asset_types/{asset_type_uid}

Delete an asset type

DELETEhttps://am-api.contentstack.com/api/asset_types/{asset_type_uid}

Delete an asset type preview image

DELETEhttps://am-api.contentstack.com/api/asset_types/preview_image/{asset_type_uid}

The Get all asset types request fetches a paginated list of all asset types in your organization.

Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
{
  "count": 0,
  "relation": "string",
  "asset_types": [
    {
      "_id": "string",
      "uid": "string",
      "title": "string",
      "description": "string",
      "content_type": "string",
      "file_extension": "string",
      "category": "string",
      "preview_image_id": "string",
      "preview_image_url": "string",
      "fields": [
        {
          "_id": "string",
          "uid": "string",
          "title": "string",
          "display_type": "string",
          "description": "string",
          "field_metadata": {
            "default_value": null,
            "instruction": "string",
            "helper_text": "string",
            "placeholder_text": "string",
            "max_multiple_count": 1,
            "multiple_value": true,
            "min": 0,
            "max": 0,
            "format": "string",
            "data_type": "string",
            "hide_time": true,
            "choices": [
              {}
            ]
          },
          "is_mandatory": true,
          "is_multiple": true,
          "is_system": true,
          "child": [
            {}
          ],
          "path": [
            {
              "uid": "string",
              "title": "string"
            }
          ],
          "created_at": "2019-08-24T14:15:22Z",
          "created_by": "string",
          "updated_at": "2019-08-24T14:15:22Z",
          "updated_by": "string"
        }
      ],
      "created_at": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    }
  ]
}

The Update an asset type request updates the details of a specific asset type, such as its description, category, or associated fields.

If the update removes one or more fields, the request returns 202 with a job_id instead of the updated asset type: a background job then removes the values of those fields from existing assets.

Sample Request
123456789
{
  "title": "string",
  "description": "string",
  "category": "string",
  "fields": [
    "string"
  ],
  "delete_preview_image": true
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
{
  "notice": "string",
  "asset_type": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "content_type": "string",
    "file_extension": "string",
    "category": "string",
    "preview_image_id": "string",
    "preview_image_url": "string",
    "fields": [
      {
        "_id": "string",
        "uid": "string",
        "title": "string",
        "display_type": "string",
        "description": "string",
        "field_metadata": {
          "default_value": null,
          "instruction": "string",
          "helper_text": "string",
          "placeholder_text": "string",
          "max_multiple_count": 1,
          "multiple_value": true,
          "min": 0,
          "max": 0,
          "format": "string",
          "data_type": "string",
          "hide_time": true,
          "choices": [
            {}
          ]
        },
        "is_mandatory": true,
        "is_multiple": true,
        "is_system": true,
        "child": [
          {}
        ],
        "path": [
          {
            "uid": "string",
            "title": "string"
          }
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "created_by": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "updated_at": "2019-08-24T14:15:22Z",
    "updated_by": "string"
  },
  "job_id": "string"
}

The Get an asset type request fetches the details of a specific asset type using its uid.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
{
  "asset_type": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "content_type": "string",
    "file_extension": "string",
    "category": "string",
    "preview_image_id": "string",
    "preview_image_url": "string",
    "fields": [
      {
        "_id": "string",
        "uid": "string",
        "title": "string",
        "display_type": "string",
        "description": "string",
        "field_metadata": {
          "default_value": null,
          "instruction": "string",
          "helper_text": "string",
          "placeholder_text": "string",
          "max_multiple_count": 1,
          "multiple_value": true,
          "min": 0,
          "max": 0,
          "format": "string",
          "data_type": "string",
          "hide_time": true,
          "choices": [
            {}
          ]
        },
        "is_mandatory": true,
        "is_multiple": true,
        "is_system": true,
        "child": [
          {}
        ],
        "path": [
          {
            "uid": "string",
            "title": "string"
          }
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "created_by": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "updated_at": "2019-08-24T14:15:22Z",
    "updated_by": "string"
  }
}

The Delete an asset type request deletes a specific asset type using its uid.

The request returns 202: the asset type is deleted, and a background job then unlinks the assets still associated with it. The response includes the job's job_id. Until the job finishes, some assets may still show the deleted asset type.

Sample Response
Status|202
12345678
{
  "notice": "string",
  "uid": "string",
  "deleted_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "updated_by": "string",
  "job_id": "string"
}

The Delete an asset type preview image request removes the preview image associated with a specific asset type.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
{
  "notice": "string",
  "asset_type": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "content_type": "string",
    "file_extension": "string",
    "category": "string",
    "preview_image_id": "string",
    "preview_image_url": "string",
    "fields": [
      {
        "_id": "string",
        "uid": "string",
        "title": "string",
        "display_type": "string",
        "description": "string",
        "field_metadata": {
          "default_value": null,
          "instruction": "string",
          "helper_text": "string",
          "placeholder_text": "string",
          "max_multiple_count": 1,
          "multiple_value": true,
          "min": 0,
          "max": 0,
          "format": "string",
          "data_type": "string",
          "hide_time": true,
          "choices": [
            {}
          ]
        },
        "is_mandatory": true,
        "is_multiple": true,
        "is_system": true,
        "child": [
          {}
        ],
        "path": [
          {
            "uid": "string",
            "title": "string"
          }
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "created_by": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      }
    ],
    "created_at": "2019-08-24T14:15:22Z",
    "created_by": "string",
    "updated_at": "2019-08-24T14:15:22Z",
    "updated_by": "string"
  },
  "job_id": "string"
}
Hide Parameters

Query Parameters

skipoptionalstring

The skip parameter skips a specific number of items in the output. For example, if there are 20 items and you want to skip the first 2 to get only the last 18 in the response body, specify 2 here.

limitoptionalstring

The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.

include_countoptionalstring

Set to true to include the total number of asset types in the response. Default is false.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Hide Parameters

URL Parameters

asset_type_uidrequiredstring

Enter the uid of the asset type that you want to retrieve.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Body Parameters

titleoptionalstring

The updated title of the asset type.

descriptionoptionalstring

The updated description of the asset type.

categoryoptionalstring

The updated category of the asset type.

fieldsoptionalstring[]

The updated list of field uid values associated with the asset type.

delete_preview_imageoptionalboolean

Set to true to delete the preview image of the asset type.

Hide Parameters

URL Parameters

asset_type_uidrequiredstring

Enter the uid of the asset type that you want to retrieve.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Hide Parameters

URL Parameters

asset_type_uidrequiredstring

Enter the uid of the asset type that you want to retrieve.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Hide Parameters

URL Parameters

asset_type_uidrequiredstring

Enter the uid of the asset type that you want to retrieve.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.