Update variables from an asset type

PATCH {{baseUrl}}/assettypes/:id/variables?includeShared=false

Updates an existing variable defined on an asset type. Variables cannot be added or deleted using this operation, for adding or deleting variables use patch/put assettype api. Any variable which is not part of the request will remain unchanged. Variable's Name, Length, Default Value and Unit can be changed. The unit changes from the api does not compute any value changes derived after the unit changes, the values will remain as it is and only the unit will be updated. The length can only be increased of a string variable and it cannot be decreased. This operation will increment the asset type etag value.

Request Params

KeyDatatypeRequiredDescription
includeSharedbooleanSpecifies if the operation should take into account shared (received) assets, aspects and asset types. Received resources are not visible in case includeShared=false. For query operations, received resources are not returned. Endpoints addressing individual resources respond with 404. In case received resources are referenced in a request parameter or property, they are treated as not existing.

Request Body

{"magnabb4"=>{"name"=>"<string>", "unit"=>"<string>", "length"=>"<integer>", "defaultValue"=>"<string>"}, "sunt_7c"=>{"name"=>"<string>", "unit"=>"<string>", "length"=>"<integer>", "defaultValue"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
If-Matchstring(Required) Last known version of asset type to facilitate optimistic locking. Etag from asset type response to be used.
Content-Typestring
Acceptstring