assign-objects-to-label
restish dci assign-objects-to-label id
Assigns or un-assigns objects to the label specified by the ID.
Request
Content-Type: application/json
Schema
{
"type": "object",
"description": "Request to assign or remove objects from a label.",
"properties": {
"add": {
"type": "array",
"items": {
"required": [
"objectId",
"objectType"
],
"type": "object",
"description": "Object identifier and type used for label assignments.",
"properties": {
"objectId": {
"type": "string",
"description": "The ID of the object to assign/unassign."
},
"objectType": {
"type": "string",
"enum": [
"alert",
"allocation",
"budget",
"metric",
"report",
"annotation"
],
"description": "The type of the object."
}
}
},
"description": "Array of objects to assign to the label."
},
"remove": {
"type": "array",
"items": {
"required": [
"objectId",
"objectType"
],
"type": "object",
"description": "Object identifier and type used for label assignments.",
"properties": {
"objectId": {
"type": "string",
"description": "The ID of the object to assign/unassign."
},
"objectType": {
"type": "string",
"enum": [
"alert",
"allocation",
"budget",
"metric",
"report",
"annotation"
],
"description": "The type of the object."
}
}
},
"description": "Array of objects to unassign from the label."
}
}
}
Responses
200
OK - Objects assigned/unassigned successfully.