Only supports updating Extended data on an Asset.

Note: Data that is not typically included in the asset model but that you would like added is passed in using an ‘extended’ property. Pass the values to be updated in this extended property in like in the examples below using a JSON format

Examples

$ curl -i \
  -H "Accept: application/json; version=1" \
  -H "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQyLCJpYXQiOjE0NjM2OTQ4MjN9.k48v-R-un93KdIXqp9Zi12JOGJCu8uibtrWjscFCTqc" \
  -X PUT \
  -H 'Content-type: application/json' \
  -d '{"asset": { "extended": { "fleet_id": 4279 }}' \
  https://api.record360.com/api/assets/42

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate

{
  "asset": {
    "id": "42",
    ...
    "extended": {
      "fleet_id": 4279
    }
  }
}

Params

Param name Description
asset
required

Asset attributes

Validations:

  • Must be a Hash

asset[extended]
optional , nil allowed

Extended data

Validations:

  • Must be a Hash