Skip to main content
PUT
/
permissions
/
{permissionId}
/
archive
Delete Permission
curl --request PUT \
  --url https://api.dfns.io/permissions/{permissionId}/archive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "isArchived": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "operations": [
    "<string>"
  ],
  "status": "Active",
  "isImmutable": true,
  "isArchived": true,
  "dateCreated": "<string>",
  "dateUpdated": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
✅ Service Account

Required Permissions

Permissions:Archive: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Path Parameters

permissionId
string
required
Minimum length: 1

Body

application/json
isArchived
boolean
required

Response

200 - application/json

Success

id
string
required
name
string
required
operations
string[]
required
status
enum<string>
required
Available options:
Active
isImmutable
boolean
required
isArchived
boolean
required
dateCreated
string
required
dateUpdated
string
required
I