POST /permissions/{permissionId}/assignments
By using POST /permissions/{permissionId}/assignments API, you can create a permission to allow certain specified operations to be executed. Response is either the permission object itself (success) or a reason why it was not possible to create the permission (failure).
- Authentication
- Organization User (CustomerEmployee)
Delegated User (
EndUser)Service Account
- Required Permissions
Permissions:Assign: Always required.- Authorizations
- Bearer Token: To authenticate API requests.
- X-DFNS-USERACTION
- User Action Signature: To sign the change-inducing API requests.
- Parameters
-
name: Minimum length: 1
operations: Minimum length: 1
- Request body
-
{ curl --request POST \ --url https://api.digitalassets.ibm.com/permissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-DFNS-USERACTION: <api-key>' \ --data '{ "name": "<string>", "operations": [ "Alias:Create" ] }' - Response
- 200: Success