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
  • Agents Start Here
  • 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. Fields

Fields

markdownView as Markdown

Define and manage custom metadata fields.

Create a field

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

The Create a field request creates a custom metadata field in your organization. Associate it with one or more asset types afterwards to make it available on assets.

Every field requires title, uid, display_type, is_system, is_mandatory, is_multiple, and field_metadata.

Choose uid deliberately and treat it as permanent: it is the key you read and write in user_defined_fields on an asset. Use display_type to select the input: TEXT, GROUP, URL, MULTITEXT, SELECT, NUMBER, BOOLEAN, DATE, RADIO, or CHECKBOX. Values are case-sensitive, so text is rejected with 422.

Set is_mandatory to require a value before an asset can be saved, and is_multiple to accept more than one value, which turns the field into a list. Set is_system to false for fields you create, because it marks a Contentstack-managed field.

Use field_metadata for per-type configuration, such as validation rules or the options of a choice field, and child to nest fields under a group field so related values stay together.

Mandatory field accepting several values:

{
  "display_type": "TEXT",
  "field_metadata": {},
  "is_mandatory": true,
  "is_multiple": true,
  "is_system": false,
  "title": "Usage Rights",
  "uid": "usage_rights"
}

undefined

Group field with nested children:

{
  "child": [
    {
      "display_type": "DATE",
      "is_mandatory": true,
      "title": "Expires On",
      "uid": "expires_on"
    }
  ],
  "display_type": "GROUP",
  "field_metadata": {},
  "is_mandatory": false,
  "is_multiple": false,
  "is_system": false,
  "title": "Licence",
  "uid": "licence"
}

undefined

Sample Request
12345678910
{
  "description": "Who shot the asset.",
  "display_type": "TEXT",
  "field_metadata": {},
  "is_mandatory": false,
  "is_multiple": false,
  "is_system": false,
  "title": "Photographer",
  "uid": "photographer"
}
Sample Response
Status|201 Created
123456789101112131415161718
{
  "notice": "string",
  "field": {
    "uid": "string",
    "title": "string",
    "display_type": "string",
    "asset_types_count": 0,
    "is_system": true,
    "is_mandatory": true,
    "is_multiple": true,
    "description": "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 fields

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

The Get all fields request fetches a paginated list of all custom metadata fields in your organization.

Sample Response
Status|200 OK
1234567891011121314151617181920
{
  "count": 0,
  "relation": "string",
  "fields": [
    {
      "uid": "string",
      "title": "string",
      "display_type": "string",
      "asset_types_count": 0,
      "is_system": true,
      "is_mandatory": true,
      "is_multiple": true,
      "description": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "created_by": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    }
  ]
}

Update a field

PUThttps://am-api.contentstack.com/api/fields/{field_uid}

The Update a field request updates the details of a specific custom metadata field, such as its title, description, or validation rules.

If the update removes a child from a group field, the request returns 202 with a job_id: a background job then removes the values of the removed child from existing assets.

Sample Request
12345678910111213141516171819202122232425262728
{
  "title": "string",
  "description": "string",
  "is_mandatory": true,
  "display_type": "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": [
      {}
    ]
  },
  "child": [
    {}
  ],
  "asset_types": [
    {}
  ]
}
Sample Response
Status|200 OK
123456789101112131415161718
{
  "notice": "string",
  "field": {
    "uid": "string",
    "title": "string",
    "display_type": "string",
    "asset_types_count": 0,
    "is_system": true,
    "is_mandatory": true,
    "is_multiple": true,
    "description": "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 a field

GEThttps://am-api.contentstack.com/api/fields/{field_uid}

The Get a field request fetches the details of a specific custom metadata field using its uid.

Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041
{
  "field": {
    "_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"
  }
}

Delete a field

DELETEhttps://am-api.contentstack.com/api/fields/{field_uid}

The Delete a field request deletes a specific custom metadata field using its uid.

The request returns 202: the field is deleted, and a background job then removes its values from existing assets. The response includes the job's job_id. Until the job finishes, some assets may still return a value for the field.

Sample Response
Status|202
12345
{
  "notice": "string",
  "uid": "string",
  "job_id": "string"
}
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 field.

uidrequiredstring

The unique identifier of the field.

descriptionoptionalstring

A description of the field.

is_systemrequiredboolean

Indicates whether the field is a system field.

display_typerequiredstring

The input type of the field. One of TEXT, GROUP, URL, MULTITEXT, SELECT, NUMBER, BOOLEAN, DATE, RADIO, or CHECKBOX. Values are case-sensitive.

One of: TEXT, GROUP, URL, MULTITEXT, SELECT, NUMBER, BOOLEAN, DATE, RADIO, CHECKBOX

is_mandatoryrequiredboolean

Indicates whether the field is mandatory.

is_multiplerequiredboolean

Indicates whether the field accepts multiple values.

field_metadatarequiredobject

The configuration metadata of a custom field.

field_metadata.default_valueoptionalany

The default value of the field.

field_metadata.instructionoptionalstring
field_metadata.helper_textoptionalstring
field_metadata.placeholder_textoptionalstring
field_metadata.max_multiple_countoptionalinteger
field_metadata.multiple_valueoptionalboolean
field_metadata.minoptionalnumber
field_metadata.maxoptionalnumber
field_metadata.formatoptionalstring
field_metadata.data_typeoptionalstring
field_metadata.hide_timeoptionalboolean
field_metadata.choicesoptionalobject[]
childoptionalobject[]

The child fields of a group field.

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 fields 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

field_uidrequiredstring

Enter the uid of the field 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 field.

descriptionoptionalstring

The updated description of the field.

is_mandatoryoptionalboolean

Indicates whether the field is mandatory.

display_typeoptionalstring
field_metadataoptionalobject

The configuration metadata of a custom field.

field_metadata.default_valueoptionalany

The default value of the field.

field_metadata.instructionoptionalstring
field_metadata.helper_textoptionalstring
field_metadata.placeholder_textoptionalstring
field_metadata.max_multiple_countoptionalinteger
field_metadata.multiple_valueoptionalboolean
field_metadata.minoptionalnumber
field_metadata.maxoptionalnumber
field_metadata.formatoptionalstring
field_metadata.data_typeoptionalstring
field_metadata.hide_timeoptionalboolean
field_metadata.choicesoptionalobject[]
childoptionalobject[]
asset_typesoptionalobject[]

The asset types to associate the field with.

Hide Parameters

URL Parameters

field_uidrequiredstring

Enter the uid of the field 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

field_uidrequiredstring

Enter the uid of the field 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.