---
title: "Asset Types"
description: "<p>Define and manage asset types and their associated fields.</p>"
url: "https://www.contentstack.com/docs/developers/apis/assets-api/asset-types"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-21"
---

# Asset Types

Define and manage asset types and their associated fields.

## Create an asset type

### Create an asset type

**POST** `/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.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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

### Get all asset types

**GET** `/api/asset_types`

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

#### Query Parameters

- **skip** (optional)
  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.
- **limit** (optional)
  The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.
- **include_count** (optional)
  Set to true to include the total number of asset types in the response. Default is false.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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"
    }
  ]
}
```

## Update an asset type

### Update an asset type

**PUT** `/api/asset_types/{asset_type_uid}`

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.

#### URL Parameters

- **asset_type_uid** (required)
  Enter the uid of the asset type that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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 an asset type

### Get an asset type

**GET** `/api/asset_types/{asset_type_uid}`

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

#### URL Parameters

- **asset_type_uid** (required)
  Enter the uid of the asset type that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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"
  }
}
```

## Delete an asset type

### Delete an asset type

**DELETE** `/api/asset_types/{asset_type_uid}`

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.

#### URL Parameters

- **asset_type_uid** (required)
  Enter the uid of the asset type that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "notice": "string",
  "uid": "string",
  "deleted_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "updated_by": "string",
  "job_id": "string"
}
```

## Delete an asset type preview image

### Delete an asset type preview image

**DELETE** `/api/asset_types/preview_image/{asset_type_uid}`

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

#### URL Parameters

- **asset_type_uid** (required)
  Enter the uid of the asset type that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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"
}
```