curl --request POST \
--url https://api.dfns.io/permissions/{permissionId}/assignments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"identityId": "<string>"
}
'{
"id": "<string>",
"permissionId": "<string>",
"identityId": "<string>",
"isImmutable": true,
"dateCreated": "<string>",
"dateUpdated": "<string>"
}Creates a permission that allows 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).
curl --request POST \
--url https://api.dfns.io/permissions/{permissionId}/assignments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"identityId": "<string>"
}
'{
"id": "<string>",
"permissionId": "<string>",
"identityId": "<string>",
"isImmutable": true,
"dateCreated": "<string>",
"dateUpdated": "<string>"
}CustomerEmployee)EndUser)Permissions:Assign: Always required.Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
11Was this page helpful?