patch aspect type variables

PATCH {{baseUrl}}/aspecttypes/:id/variables

Updates an existing variable defined on an aspect type. Variables can be added, deleted and updated using this operation. Any variable which is not part of the request will remain unchanged. All variable names must be unique in a aspect type. This operation will increment the aspect type etag value.

Following are the updates allowed on existing variables * 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.

Request Body

{"culpa_"=>{"name"=>"<string>", "dataType"=>"<string>", "searchable"=>false, "unit"=>"<string>", "length"=>"<integer>", "defaultValue"=>"<string>"}, "est_1"=>{"name"=>"<string>", "dataType"=>"<string>", "searchable"=>false, "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