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.
التفويضات
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.
معلمات المسار
Agent asset to update.
الجسم
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.
Free-text description, max 2000 characters. Send null to clear it.
"Reception PC, front desk"
Identifier of the agent's asset type, one of the active types GET /v1/assets/types
lists. Sets the agent's Type. Null leaves it unchanged.
118
Identifier of the contact the agent is assigned to; must be an active contact of the agent's client, so an agent with no client cannot take one. Send null to unassign it.
7962
Date the warranty starts, a calendar date in the form yyyy-MM-dd. A value with a time or a time zone is rejected. Send null to clear it, which lets Gorelo's warranty lookup fill it in again.
"2024-03-31"
Date the warranty ends, a calendar date in the form yyyy-MM-dd. A value with a time or a time zone is rejected. Send null to clear it, which lets Gorelo's warranty lookup fill it in again.
"2027-03-31"
الاستجابة
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 The identifier of the updated agent asset.
null