Update an existing capability
patch/capabilities/{capabilityName}
Patches the specified capability based on the representation in the request body.
1{2 "id": "4d80eebd-db26-4ee9-beff-a1ce51c24d9f",3 "name": "sas.audit.report",4 "uri": "/capability/sas/audit/report",5 "description": "Grants access to run audit reports.",6 "product": "va",7 "version": 1,8 "links": [9 {10 "method": "GET",11 "rel": "self",12 "href": "/autorization/capabilities/sas.audit.report",13 "uri": "/autorization/capabilities/sas.audit.report",14 "responseType": "application/vnd.sas.authorization.capability"15 }16 ],17 "principals": [18 {19 "version": 2,20 "name": "sviadms",21 "type": "group"22 }23 ]24}
Name | Type | Required | Description |
---|---|---|---|
Accept | string | false | The respresentation to use for the returned capabilities. Allowed values: application/vnd.sas.authorization.capability.summaryapplication/vnd.sas.authorization.capability.summary;version=1application/vnd.sas.authorization.capability.summary;version=2 Default: application/vnd.sas.authorization.capability.summary;version=2 |
If-Match | string | false | ETag header. If the ETag does not match, the update will fail. |
The partial representation of a capability.
A summary object of the capability
Name | Type | Required | Description |
---|---|---|---|
id | string | false | The system-assigned unique ID for this capability. |
name | string | true | The full stop separated name for this capability e.g. sas.document.edit |
description | string | true | The description of the capability |
product | string | false | The product associated with the capability. |
version | integer<int32> | false | The schema version for the capability. |
links | array [Link] | false | Zero or more link objects relevant to the capability. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | OK | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
403 | Forbidden | Forbidden. The user does not have the required sas.capability.create capability. | Schema | |
412 | Precondition Failed | Precondition failed | Schema | |
422 | Unprocessable Entity | The specified capability representation cannot be processed. | Schema | |
428 | Precondition Required | Precondition required | Schema |