Patch an aspect type
PATCH {{baseUrl}}/aspecttypes/:id?includeShared=false
Patch an aspect type. Only adding variables and restricted updates on variables is supported, like user can change unit details, can increase the length of a static STRING variable but length of a dynamic STRING variable cannot be changed. In order to rename or remove variable use PATCH /aspecttypes/{id}/variables api. Conforms to RFC 7396 - JSON merge Patch.
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>", "category"=>"<string>", "scope"=>"private", "description"=>"<string>", "variables"=>["<object>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string | (Required) Last known version to facilitate optimistic locking | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"name":"engine","category":"\u003cstring\u003e","scope":"private","variables":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"description":"The engine of the Millenium Falcon","id":"mdsp.wing","tenantId":"mdsp","etag":1,"sharing":{"modes":["SHARER","SHARER"]},"_links":{"self":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}