Elements

Update Element (Asset)

Updates specific attributes of an existing Element (Asset). Only provided fields are updated.

patch/elements/{elementId}

Request

  • Base URL: https://api.infraspeak.com/v3
  • URL: https://api.infraspeak.com/v3/elements/{elementId}
  • Auth: HTTP bearer

Path parameters

elementIdstring required

Element ID

Request body

nfc_codeunknown
bar_codeunknown
latitudeunknown
longitudeunknown
observationunknown
codeunknown
local_idinteger

Mandatory ID of the associated Location (where the Element is situated).

  • Must reference a Location from GET /locations.
  • The Location must be of type "location". Locations of type "building" or "location-folder" are NOT allowed.
maintenance_policy_idinteger

Mandatory ID of the associated Maintenance Policy.

  • Must reference a Maintenance Policy from GET /maintenance-policies.
  • The Maintenance Policy must belong to the same Category specified in category_id.
cost_center_idunknown
acquisition_costunknown
acquisition_datestring date-time

Optional date (and time) when the Element was acquired (or put into service). Uses ISO 8601 date-time format.

supplier_nameunknown
lifetimeunknown
residual_valueunknown
stoppage_costunknown

Response

OK

Example response

{
  "included": [
    {
      "id": "1",
      "attributes": {
        "element_health_score_info": 1,
        "health_score_flag": 1,
        "health_score": 0.85
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.