Update an asset
PUT {{baseUrl}}/assets/:id?includeShared=false
Updates an asset with the provided content. Only values can be modified, asset's structure have to be modified in asset's type
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
includeShared | boolean | Specifies 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
{"name"=>"<string>", "externalId"=>"<string>", "description"=>"<string>", "location"=>{"country"=>"<string>", "region"=>"<string>", "locality"=>"<string>", "streetAddress"=>"<string>", "postalCode"=>"<string>", "longitude"=>"<number>", "latitude"=>"<number>"}, "variables"=>[{"name"=>"<string>", "value"=>"<string>"}, {"name"=>"<string>", "value"=>"<string>"}], "aspects"=>[{"name"=>"<string>", "variables"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, {"name"=>"<string>", "variables"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}], "fileAssignments"=>[{"key"=>"<string>", "fileId"=>"<string>"}, {"key"=>"<string>", "fileId"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string | (Required) Last known version to facilitate optimistic locking | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"typeId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"parentId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"timezone":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"twinType":"performance","tenantId":"mdsp","subTenant":"UnkarPlutt Inc.","t2Tenant":"DEPRECATED: use subTenant instead","assetId":"c27a28b6eb16b507fabc11e75da8b4ce","fileAssignments":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"locks":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"deleted":"1992-05-06T17:57:11.041Z","sharing":{"modes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"etag":1,"_links":{"self":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"parent":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"children":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"variables":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"aspects":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"t2Tenant":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"location":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"hierarchyPath":[{"assetId":"c27a28b6eb16b507fabc11e75da8b4ce","name":"Millenium Falcon's parent"},{"assetId":"c27a28b6eb16b507fabc11e75da8b4ce","name":"Millenium Falcon's parent"}]}