Hi,
I am trying to update an asset using the REST API:
PUT https://[instance]/api/v2/assets/8577/
The JSON payload being sent is:
{
"impact": "low",
"user_id": 16000418100,
"description": "Business App 5 Description b",
"type_fields": {},
"group_id": 16000308791,
"asset_type_id": 16000480446,
"name": "Business App 5"
}
The asset I am trying to update is asset type Business Service and has the following values:
The group_id of 16000308791 which is being sent in the payload is the id of Engineering, so I am updating the asset with the same Managed By Group that it is already set to.
The user_id of 16000418100 which is being sent in the payload is the id of Chris Scaglione, so I am updating the asset with the same Used By that it is already set to.
I am not passing an agent_id. I expect it to keep the same value that is already set in the Managed By field. However, I am getting the following validation error response:
{
"description": "Validation failed",
"errors": [
{
"field": "agent_id",
"message": "Assigned agent isn't a member of the group.",
"code": "invalid_value"
}
]
}
Is there an issue with the JSON payload that I am sending or with the asset update API?
Thanks