Update asset
PATCH/v2/assets
This API request can be used to update assets using a partial update approach through the use of JSON Patch defined in RFC 6902.
Currently only a single asset can be updated at a time. The request must contain exactly one asset update request in the list.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Asset was successfully updated.
Bad request. These are the possible error codes returned:
asset_type_cannot_be_changed Some asset types cannot be changed. E.g. Asset of type VEHICLE, GATEWAY or MACHINE cannot be changed to any other type.
not_supported_value Given value cannot be assigned to the asset. E.g. Brand <given value> is not supported by machines.
gateway_asset_cannot_be_modified For GATEWAY type assets fields like : assetType, type, model, brand, productionYear, serialNumber cannot be modified.
Invalid or missing bearer token in Authorization header
User not allowed to make this request. These are the possible error codes from this API:
only_owner_of_the_asset_can_edit_given_fields Fields like : assetType, type, model, brand, productionYear, serialNumber can be modified only by the owner of the asset.
Resource not found. These are the possible error codes from this API:
asset_not_found Asset was not found by given ID.
Internal server error