Updates a custom asset. Send only the fields you want to change.
An omitted field is left alone, and re-sending a value the asset already holds is a no-op rather than an error. Sending nothing at all is a 400.
Description, ContactId, WarrantyEndDate, WarrantyStartDate,
Manufacturer, Model, IpAddress and SerialNumber are cleared by
sending them as null. WarrantyStartDate, Manufacturer and Model are kept
for API callers only: the Gorelo app does not show them, and changing only those records
nothing on the asset’s timeline. Name, LocationId and
HardwareTypeId cannot be cleared; null leaves them unchanged.
A new ClientId moves the asset to that client. The asset’s location and contact
must belong to the new client, so send a LocationId of the new client, and a
ContactId of it or null, unless the ones the asset holds already belong to it.
The primary contact is also listed under the asset’s related items: assigning a contact adds it there, and replacing or clearing it removes the previous one.
Autorizações
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.
Parâmetros de caminho
Custom asset to update.
Corpo
Fields to change.
Request body for updating a custom asset. Every field is optional - send only what should change. An omitted field keeps the value the asset already holds.
Display name of the asset. Max 300 characters, cannot be blank. Null leaves it unchanged.
"Reception printer"
Identifier of the client the asset belongs to; must be an active client. A different client moves the asset, and its location and contact must then belong to the new client. Null leaves it unchanged.
3521
Identifier of the client location the asset sits at; must be an active location of the asset's client. Null leaves it unchanged.
4410
Identifier of the asset's hardware type, one of the service provider's active custom asset types. Null leaves it unchanged.
118
Free-text description, max 1000 characters. Send null to clear it.
"HP LaserJet on the front desk"
Identifier of the contact the asset is assigned to; must be an active contact of the asset's client. Send null to unassign it.
7962
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.
"2027-03-31"
IPv4 address of the asset, such as 192.168.1.20. Send null to clear it. The same name an agent asset publishes.
"192.168.1.20"
IPv4 address of the asset. Send null to clear it. Deprecated: use LocalIPAddress.
Still accepted; sending both with different values is a 400.
"192.168.1.20"
Hardware serial number, max 250 characters. Send null to clear it.
"CNB1K23456"
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.
"2024-03-31"
Manufacturer, max 300 characters. Send null to clear it.
"Ubiquiti"
Model, max 300 characters. Send null to clear it.
"UniFi Dream Machine Pro"
Resposta
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 custom asset.
null