contentstack · Schema

CreateAttributeRequest

Parameters for creating or updating an attribute.

Properties

Name Type Description
name string Display name for the attribute.
key string Machine-readable key for the attribute.
data_type string Data type of the attribute.
View JSON Schema on GitHub

JSON Schema

contentstack-createattributerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateAttributeRequest",
  "title": "CreateAttributeRequest",
  "type": "object",
  "description": "Parameters for creating or updating an attribute.",
  "required": [
    "name",
    "key",
    "data_type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for the attribute."
    },
    "key": {
      "type": "string",
      "description": "Machine-readable key for the attribute."
    },
    "data_type": {
      "type": "string",
      "description": "Data type of the attribute.",
      "enum": [
        "string",
        "number",
        "boolean",
        "date"
      ]
    }
  }
}