Hello everyone, I'm trying to add tags to existing ( or new ) users via the web api and I'm facing the following errors.
1) /web_api/v1.1/set-tag
request
{
"uid" : "5fa2f623-8dd1-472b-b7b6-6d444f3dcd33",
"tags" : {
"add" : "tag3"
}
}
response
{
"code": "generic_err_object_type_wrong",
"message": "The UID value '5fa2f623-8dd1-472b-b7b6-6d444f3dcd33' belongs to an object that is not compatible with this API"
}
2) web_api/v1.1/set-generic-object
request
{
"uid" : "3a3cc4cd-7169-42a7-9037-3516933b5fbd",
"tags": { "add": "tag3" }
}
response
{
"code": "generic_server_error",
"message": "Management server failed to execute command"
}
3) web_api/v1.1/set-generic-object
request
{
"uid" : "3a3cc4cd-7169-42a7-9037-3516933b5fbd",
"tags": ["tag3"]
}
Response
{
"code": "generic_server_error",
"message": "Management server failed to execute command"
}
4) web_api/v1.1/add-generic-object
Request
{
"create":"com.checkpoint.objects.classes.dummy.CpmiUser",
"name":"test-012",
"tags":["tag3"],
"userc":{
"create":"com.checkpoint.objects.classes.dummy.CpmiSpecificUserc",
"owned-object":{
"useGlobalEncryptionValues":"true",
"ike":{
"create":"com.checkpoint.objects.classes.dummy.CpmiSpecificUsercIke"
}
}
}
}
Response
{
"code": "generic_server_error",
"message": "Management server failed to execute command"
}
is there any other option for create tags on users ?
any thoughts are welcome 🙂