Summary
Updates a device's targets
Description
Updates the policy reference(s) of a device's targets. Does not add new targets to the device.
Route
PUT /policy-manager/devices/:id/targets
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
ID of the device. |
targets |
array |
yes |
array of targets to be updated |
Copied to Clipboard
{
"targets": [
{
"targetId": "5cb08d4f16640f00182c3890",
"policyId": "5d0aa166f27c1a02fe2e9c8a",
"sourceNetworks": [],
"destinationNetworks": []
},
{
"targetId": "5cb08d4f16640f00182c3890",
"policyId": "5d0aa166f27c1a02fe2e9c8a",
"sourceNetworks": [],
"destinationNetworks": []
},
{
"targetId": "5cb08d4f16640f00182c3890",
"policyId": "5d0aa166f27c1a02fe2e9c8a",
"sourceNetworks": [],
"destinationNetworks": []
},
{
"targetId": "5cb08d4f16640f00182c3890",
"policyId": "5d0aa166f27c1a02fe2e9c8a",
"sourceNetworks": [],
"destinationNetworks": []
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"targets": {
"title": "targets",
"type": "array",
"items": {
"type": "object",
"examples": [
{
"targetId": "5cb08d4f16640f00182c3890",
"policyId": "5d0aa166f27c1a02fe2e9c8a",
"sourceNetworks": [],
"destinationNetworks": []
}
]
}
}
},
"required": [
"targets"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Results of delete action |
Copied to Clipboard
{
"status": "failure",
"n": 39431979
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"success",
"failure"
]
},
"n": {
"type": "integer"
}
}
}