---
title: "Modify option"
url: "https://earlyaccess.developers.bynder.com/apis/metaproperty-options-1/versions/9b6f896a-c5dd-4f1a-a8e4-591e5ef4f1db/operations/patchApi1TaxonomyMetapropertiesMetapropertyidOptionsOptionid"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/metaproperty-options-1/versions/9b6f896a-c5dd-4f1a-a8e4-591e5ef4f1db.md

# Modify option

`PATCH` `/api/1/taxonomy/metaproperties/{metapropertyId}/options/{optionId}`

Operation ID: `patchApi1TaxonomyMetapropertiesMetapropertyidOptionsOptionid`

Modify an option by id

## Path parameters

- `metapropertyId` (string, uuid, required)
- `optionId` (string, uuid, required)

## Request body (required)

Content types: `application/json`

## Responses

- `200`
- `400`
- `404`

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Metaproperty options
  version: "1.0"
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/1/taxonomy/metaproperties/{metapropertyId}/options/{optionId}:
    patch:
      description: Modify an option by id
      operationId: patchApi1TaxonomyMetapropertiesMetapropertyidOptionsOptionid
      parameters:
        - in: path
          name: metapropertyId
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: optionId
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                definition:
                  type: string
                externalReference:
                  type: string
                icon:
                  type: string
                name:
                  type: string
              title: MetapropertyOptionUpdateInput
              type: object
        required: true
      responses:
        "200":
          content:
            application/json:
              examples:
                OptionUpdated:
                  summary: Response when the option is updated
                  value:
                    message: Option has been updated
              schema:
                properties:
                  message:
                    type: string
                required:
                  - message
                title: OptionUpdatedOutput
                type: object
          description: ""
        "400":
          content:
            application/json:
              examples:
                NameAlreadyRegistered:
                  summary: Response when the name is already used
                  value:
                    errorCode: name-already-registered
                    message: Name was already registered
              schema:
                properties:
                  errorCode:
                    type: string
                  errors:
                    items:
                      properties:
                        errorCode:
                          type: string
                        message:
                          type: string
                      required:
                        - errorCode
                        - message
                      title: ErrorMessage
                      type: object
                    type: array
                  message:
                    type: string
                title: OptionUpdateInvalidOutput
                type: object
          description: ""
        "404":
          content:
            application/json:
              examples:
                MetapropertyNotExisting:
                  summary: Response when the metaproperty does not exist
                  value:
                    errorCode: metaproperty-not-existing
                    message: Metaproperty does not exist
                OptionNotExisting:
                  summary: Response when the option does not exist
                  value:
                    errorCode: option-not-existing
                    message: Option does not exist
              schema:
                properties:
                  errorCode:
                    type: string
                  message:
                    type: string
                title: OptionUpdateNotFoundOutput
                type: object
          description: ""
      summary: Modify option
      tags:
        - Options - New API (Preferred)
security:
  - OAuth2:
      - METAPROPERTYMANAGEMENT
      - METAMANAGEMENT
  - permanentToken:
      - METAPROPERTYMANAGEMENT
      - METAMANAGEMENT
components:
  securitySchemes:
    OAuth2:
      flows:
        authorizationCode:
          authorizationUrl: https://{your-auth-url}
          scopes:
            METAMANAGEMENT: ""
            METAPROPERTYMANAGEMENT: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
        clientCredentials:
          scopes:
            METAMANAGEMENT: ""
            METAPROPERTYMANAGEMENT: ""
          tokenUrl: https://{your-bynder-domain}/v6/authentication/oauth2/token
      type: oauth2
    permanentToken:
      in: header
      name: Authorization
      type: apiKey
```
