Updates an agent (managed device) asset. Send only the fields you want to change.
An omitted field is left alone, and re-sending a value the agent already holds is a no-op rather than an error. Sending nothing at all is a 400.
Description, ContactId, WarrantyStartDate and WarrantyEndDate are
cleared by sending them as null; a cleared warranty date is filled in again by Gorelo’s
warranty lookup, and a date set here is kept rather than overwritten by it.
HardwareTypeId cannot be cleared; null leaves it unchanged.
ContactId must be an active contact of the agent’s client, so an agent awaiting
adoption (no client) cannot be given one. The primary contact is also listed under the
agent’s related items: assigning a contact adds it there, and replacing or clearing it
removes the previous one. Each change is recorded on the agent’s timeline, as it is when the
agent is edited in the app.
Authorizations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Body
Fields to change.
Request body for updating an agent asset. Every field is optional - send only what should change. An omitted field keeps the value the agent already holds.
Response
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511