---
title: "Create option"
url: "https://earlyaccess.developers.bynder.com/apis/metaproperty-options-1/versions/9b6f896a-c5dd-4f1a-a8e4-591e5ef4f1db/paths/api-v4-metaproperties-id--options/post"
---

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

# Create option

`POST` `/api/v4/metaproperties/{id}/options`

Requires the METAPROPERTYMANAGEMENT or METAMANAGEMENT security role.

## Path parameters

- `id` (string, required)

## Request body (required)

Content types: `application/x-www-form-urlencoded`

## Responses

- `201` - Created
- `400` - Bad Request
- `404` - Metaproperty not found

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Metaproperty options
  version: "1.0"
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/v4/metaproperties/{id}/options:
    post:
      description: Requires the METAPROPERTYMANAGEMENT or METAMANAGEMENT security role.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            example: 00000000-0000-0000-0000000000000000
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                data:
                  description: JSON-serialised string
                  example: '{"name": "BlueType", "externalReference": "Reference number 1",
                    "label": "Blue", "labels": {"fr_FR": "foo", "en_US": "foo"},
                    "zindex": 4, "isSelectable": true, "parentId":
                    "00000000-0000-0000-0000000000000000", "options": [{"name":
                    "BlueType", "label": "Blue", "labels": {"fr_FR": "foo",
                    "en_US": "foo"}, "zindex": 4, "isSelectable": true,
                    "parentId": "00000000-0000-0000-0000000000000000"}]}'
                  type: string
              type: object
        required: true
      responses:
        "201":
          content:
            application/json:
              schema:
                properties:
                  id:
                    example: 00000000-0000-0000-0000000000000000
                    type: string
                  message:
                    example: Created
                    type: string
                  statuscode:
                    example: 201
                    type: integer
                type: object
          description: Created
        "400":
          content:
            application/json:
              examples:
                existingOption:
                  value:
                    existingUUID: 00000000-0000-0000-0000000000000000
                    message: Meta property option with this name already exists
                    statuscode: "400"
                invalidId:
                  value:
                    message: Invalid metaproperty ID
                    statuscode: "400"
                invalidJson:
                  value:
                    message: Invalid JSON
                    statuscode: "400"
                nameRequired:
                  value:
                    message: Meta property option name is required
                    statuscode: "400"
                noData:
                  value:
                    message: No data sent
                    statuscode: "400"
              schema:
                properties:
                  message:
                    example: Invalid metaproperty ID
                    type: string
                  statuscode:
                    example: "400"
                    type: string
                type: object
          description: Bad Request
        "404":
          content:
            application/json:
              examples:
                notFound:
                  value:
                    message: Metaproperty not found
                    statuscode: "404"
              schema:
                properties:
                  message:
                    example: Metaproperty not found
                    type: string
                  statuscode:
                    example: "404"
                    type: string
                type: object
          description: Metaproperty not found
      summary: Create option
      tags:
        - Options - Old API (Please use new API if possible)
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
```
