الانتقال إلى المحتوى الرئيسي
PATCH
Updates an agent (managed device) asset. Send only the fields you want to change.

التفويضات

X-API-Key
string
header
مطلوب

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.

معلمات المسار

agentAssetId
string<uuid>
مطلوب

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.

Description
string | null

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

مثال:

"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.

مثال:

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.

مثال:

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.

مثال:

"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.

مثال:

"2027-03-31"

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
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
مثال:

null

Notifications
object[]