Archive Permission
Last updated
Last updated
PUT /permissions/{permissionId}/archive
Archives or unarchives a permission, depending on the body of the request. Response either returns the updated permission (success) or the reason why it was not possible to execute the operation (failure).
Permissions:Archive
Always Required
permissionId
Unique identifier of the permission. Permission IDs look like this:
pm-orange-apple-2b17a80613
In the request body specify wheter the permission is to be archived or unarchived.
isArchived
Boolean - Required
Specify whether to archive or unarchive permission.
If successful, a response object of the update permission will be returned:
When a permission is archived, it remains in the database and its permission name cannot be reused.