# create_item_label

**Create item label** · Changes data

Create an account-owned reusable item label.

- One catalog serves keyword and ASIN attachments.
- Names must be unique within this catalog.
- Does not change label assignments or require removal confirmation.
- Do not blindly repeat creation after a lost response; read the catalog first.

**Cost and limits:** Consumes 5 credits after the write succeeds, even if its response is lost.

## Input

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `label_name` | `string` | Required | Label name, trimmed to 1 to 25 Unicode characters. Maximum length 256. |
| `color` | `string` | Optional | Label color. Creation defaults to gray; omitted edits keep it. One of `gray`, `green`, `yellow`, `orange`, `red`, `purple`, `lilac`. |
| `pin` | `boolean` | Optional | Whether pinned in the app catalog. Creation defaults to false. |

## Output

Read this object from the result's `structuredContent`. The result's `content` carries a text version for the model, which is not always the same JSON.

Fields of `data`:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `label_id` | `integer` | Required | Minimum 1. Maximum 2147483647. |
| `label_name` | `string \| null` | Required |  |
| `color` | `string \| null` | Required |  |
| `pin` | `boolean \| null` | Required |  |


<details>
<summary>Full input and output JSON Schema</summary>

```json
{
  "inputSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "label_name": {
        "type": "string",
        "maxLength": 256,
        "description": "Label name, trimmed to 1 to 25 Unicode characters."
      },
      "color": {
        "description": "Label color. Creation defaults to gray; omitted edits keep it.",
        "type": "string",
        "enum": [
          "gray",
          "green",
          "yellow",
          "orange",
          "red",
          "purple",
          "lilac"
        ]
      },
      "pin": {
        "description": "Whether pinned in the app catalog. Creation defaults to false.",
        "type": "boolean"
      }
    },
    "required": [
      "label_name"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "data"
    ],
    "properties": {
      "data": {
        "$ref": "#/$defs/CatalogLabel"
      }
    },
    "$defs": {
      "CatalogLabel": {
        "type": "object",
        "description": "A reusable account label. Existing app-created labels may contain null fields or colors outside the values accepted for new writes. The default app color is returned as `gray`. Updating a label preserves fields you omit.",
        "required": [
          "label_id",
          "label_name",
          "color",
          "pin"
        ],
        "properties": {
          "label_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "label_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "pin": {
            "type": [
              "boolean",
              "null"
            ]
          }
        }
      }
    }
  }
}
```

</details>
