When updating an asset via API the error "Asset does not exist" is returned

When updating an asset via API the error "Asset does not exist" is returned.

When trying to update an Asset in Orchestrator using the “PUT / odata / Assets ({Id})” call an error message is retrieved:
 { “message”: “Asset does not exist.”, “errorCode”: 1002, “resourceIds”: null }

This is happening when the Asset ID is not specified in the body. Besides specifying the Asset ID in the Header this one should also go into the body. The call to this endpoint must contain the following information:



 To this endpoint we can also send a custom body specifying just the relevant information, for example:
 
{“Id”:2,“StringValue”:“MyName3”,“ValueType”:“Text”,“Name”:“Test”,“Description”:null,“ValueScope”:“Global”,“HasDefaultValue”:true,“CanBeDeleted”:true}