Variable (PUT)
Заменяет переменную контекста. Ответ пустой.
Запрос
PUT /v1/contexts/{contextPath}/variables/{variable}
Замените {contextPath}
на полный путь контекста.
Замените {variable}
на имя переменной.
Поля заголовка запроса
- Authorization — Токен аутентификации. Более подробно об аутентификации см. раздел Аутентификация.
Тело ответа
Новое значение переменной контекста.
Пример запроса
Запрос:
PUT https://localhost:8443/rest/v1/contexts/users.admin.models.example/variables/exampleTable
Пример тела запроса JSON:
[
{
"name": "Room_1",
"description": "Machinery Storage"
},
{
"name": "Room_2",
"description": "Workshop"
}
]