put https://{instance_zuid}.api.zesty.io/v1/env/labels
Updates sorting of all labels. This endpoint requires an array of all label ZUIDs and their respected (new) sort values. It is recommended to include all labels for more accurate sorting.
Example:
{
"data": [
{
"ZUID": "36-0000-0000",
"sort": 1
},
{
"ZUID": "36-1111-1111",
"sort": 2
},
{
"ZUID": "36-2222-2222",
"sort": 3
}
]
}
NOTE: Only users with owner or admin roles can create, update and delete a label.
Body: raw JSON
name | description |
---|---|
ZUID | [string] Label ZUID |
sort | [int] The (new) sort value. |