---
title: "Add an option to a select/multiselect/checkbox attribute"
method: POST
path: "/catalog/attributes/{attributeId}/options"
tags: ["Admin Catalog: Attributes"]
---

# Add an option to a select/multiselect/checkbox attribute

`POST /catalog/attributes/{attributeId}/options`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/catalog/attributes/{attributeId}/options`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/catalog/attributes/:attributeId/options/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new option for the given attribute. Only allowed when the attribute type is `select`, `multiselect`, or `checkbox`.

## Path parameters

- `attributeId` integer, required

## Request body

- object
  - `admin_name` string, required
  - `sort_order` integer
  - `swatch_value` string, nullable
  - `swatch_alt` string, nullable
  - `swatch_file_name` string, nullable
  - `locale` string
  - `translations` object

## Response `201`

Option created. Returns the full attribute detail.

## Other responses

- `400`: Invalid input
- `422`: Attribute type does not support options.

## Changes

- **2026-10-28** `3198f11be70f`: 3 info
  - added the new optional request property `locale`
  - added the new optional request property `swatch_alt`
  - added the new optional request property `swatch_file_name`

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/catalog/attributes/:attributeId/options/post.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
