Перейти до основного вмісту
POST
/
v1
/
options
Створити опцію
curl --request POST \
  --url https://api.example.com/v1/options \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "id": 123,
  "property": {
    "id": 123,
    "dataset": {
      "id": 123,
      "name": "<string>",
      "isDisabled": true,
      "position": 123,
      "path": "<string>",
      "states": [
        {
          "id": 123,
          "dataset": "<unknown>",
          "name": "<string>",
          "color": 123,
          "position": 123
        }
      ],
      "properties": "<array>",
      "representations": [
        {
          "id": 123,
          "dashboard": {
            "id": 123,
            "name": "<string>",
            "isDisabled": true,
            "position": 123,
            "path": "<string>",
            "representations": "<array>"
          },
          "dataset": "<unknown>",
          "representationType": {
            "id": "<string>",
            "isAggregated": true,
            "position": 123
          },
          "name": "<string>",
          "parameters": "<string>",
          "position": 123
        }
      ]
    },
    "propertyType": {
      "id": "<string>",
      "isAutomatic": true,
      "isPlural": true,
      "isSortable": true,
      "position": 123
    },
    "name": "<string>",
    "isUsedAsTitle": true,
    "isRequired": true,
    "parameters": "<string>",
    "position": 123,
    "options": "<array>"
  },
  "text": "<string>",
  "color": 123
}
'
{
  "id": 123,
  "property": {
    "id": 123,
    "dataset": {
      "id": 123,
      "name": "<string>",
      "isDisabled": true,
      "position": 123,
      "path": "<string>",
      "states": [
        {
          "id": 123,
          "dataset": "<unknown>",
          "name": "<string>",
          "color": 123,
          "position": 123
        }
      ],
      "properties": "<array>",
      "representations": [
        {
          "id": 123,
          "dashboard": {
            "id": 123,
            "name": "<string>",
            "isDisabled": true,
            "position": 123,
            "path": "<string>",
            "representations": "<array>"
          },
          "dataset": "<unknown>",
          "representationType": {
            "id": "<string>",
            "isAggregated": true,
            "position": 123
          },
          "name": "<string>",
          "parameters": "<string>",
          "position": 123
        }
      ]
    },
    "propertyType": {
      "id": "<string>",
      "isAutomatic": true,
      "isPlural": true,
      "isSortable": true,
      "position": 123
    },
    "name": "<string>",
    "isUsedAsTitle": true,
    "isRequired": true,
    "parameters": "<string>",
    "position": 123,
    "options": "<array>"
  },
  "text": "<string>",
  "color": 123
}

Тіло

id
integer<int32>
property
object
text
string | null
color
integer<int64> | null

Відповідь

OK

id
integer<int32>
property
object
text
string | null
color
integer<int64> | null