Update asset
PATCH/v1/assets/:assetId
This API request can be used to update an asset using a partial update approach through the use of JSON Patch defined in RFC 6902.
To be able to call the service a valid token is required. To get a token follow this guide : How to obtain a token
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Asset was successfully updated.
Bad request. These are the possible error codes from this API:
asset_type_cannot_be_changed For gateways and machines asset type cannot be changed. For bluetooth tags like KINs asset type can be changed to : OTHER, ATTACHMENT, EQUIPMENT, TOOL.
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 user which is 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