---
title: "Add an element option"
method: POST
path: "/pim/elements/{element_id}/element-options"
tags: ["PIM: Elements: Options"]
---

# Add an element option

`POST /pim/elements/{element_id}/element-options`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/pim/elements/{element_id}/element-options`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/pim/elements/:element_id/element-options/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `element_id` string, required

## Request body

- object
  - `data` object, required: Name of the element option
    - `type` string: Resource Type
    - `attributes` object: Attributes
      - `name` string: Name
      - `value` union: Value
        - string
        - integer
        - boolean

## Response `201`

created

- ElementOption
  - `id` string
  - `type` string
  - `attributes` object

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
