---
title: "Update an element option"
method: PATCH
path: "/dam/element-options/{element_option_id}"
tags: ["DAM: Category: Elements: Options"]
---

# Update an element option

`PATCH /dam/element-options/{element_option_id}`

## Request

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

## Path parameters

- `element_option_id` string, required

## Request body

- object
  - `data` object, required: Name of the element option
    - `type` string: Resource Type
    - `id` string: Element Option ID
    - `attributes` object: Attributes. Both name and value are required; the update endpoint does not accept partial attribute updates.
      - `name` string, required: Name
      - `value` union, required: Value
        - string
        - integer
        - boolean

## Response `201`

created

- DamElementOption
  - `id` string
  - `type` string
  - `attributes` object

## Other responses

- `401`: Unauthorized
- `422`: Validation Error

---

[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)
