Skip to main content
PATCH
Updates an agent (managed device) asset. Send only the fields you want to change.

Authorizations

X-API-Key
string
header
required

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.

Path Parameters

agentAssetId
string<uuid>
required

Agent asset to update.

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.

Description
string | null

Free-text description, max 2000 characters. Send null to clear it.

Example:

"Reception PC, front desk"

HardwareTypeId
integer<int64> | null

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.

Example:

118

ContactId
integer<int64> | null

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.

Example:

7962

WarrantyStartDate
string<date> | null

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.

Example:

"2024-03-31"

WarrantyEndDate
string<date> | null

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.

Example:

"2027-03-31"

Response

OK

StatusCode
enum<integer>
Available options:
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
IsSuccess
boolean
Data
object

The identifier of the updated agent asset.

DataContext
object | null
Example:

null

Notifications
object[]