Skip to main content

Update Permission

This API updates an existing permission set, including its name, description, and granted actions.

Endpoint Details​

URL/v1/auth/permissions/id
MethodPUT
AuthorizationBearer Token

Request Headers​

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Path​

To update an existing permission set, use the following request format:

/v1/auth/permissions/2be1c503-5dd1-4eb0-91c7-36926d81b09e

Path Parameter​

ParameterTypeDescription
idUUIDUnique identifier of the permission set to update

Request Body​

Use the following format to make a request:

JSON Request
{
"name": "security config only",
"description": "encryption, tokenization, masking",
"data": {
"access_token": {
"read": false,
"create": false,
"update": false,
"regenerate_token": false
},
"encryption": {
"read": true,
"create": true,
"update": true,
"rotation_key": true,
"list_rotation_key": true,
"delete_rotation_key": true,
"encrypt": true,
"decrypt": true
},
"tokenization": {
"read": true,
"create": true,
"update": true,
"tokenize": true,
"detokenize": true
},
"masking": {
"read": true,
"create": true,
"update": true,
"masking": true
},
"group": {
"read": false,
"invite_member": false,
"remove_member": false
},
"audit": {
"read": false,
"export": false
},
"backup_restore": {
"read": false,
"manual_backup": false,
"automatic_backup": false,
"restore": false,
"download": false,
"delete": false
},
"license": {
"read": false,
"update": false
},
"taka_lock": {
"lock": false
},
"syslog_log_integration": {
"read": false,
"sync": false,
"update": false,
"test_connection": false
},
"splunk_log_integration": {
"read": false,
"sync": false,
"update": false,
"test_connection": false
},
"loki_log_integration": {
"read": false,
"sync": false,
"update": false,
"test_connection": false
},
"decrypt_client": {
"read": false,
"delete": false,
"create_encryption": false,
"create_tokenization": false
},
"notification": {
"backup_recovery": false,
"compliance_audit_trail": false,
"integration_api_activity": false,
"key_lifecycle_management": false,
"network_connectivity": false,
"operational_maintenance": false,
"security_access_control": false,
"system_health_performance": false,
"user_role_management": false
}
}
}

Body Parameters​

ParameterTypeDescription
nameStringUpdated name of the permission set
descriptionStringOptional description of the permission set
dataObjectObject mapping each module to its available actions (boolean flags)

The available modules and actions inside data are the same as those described in Create Permission.


Response​

Here is an example response when the data is successfully updated:

Response
{
"permission": {
"id": "2be1c503-5dd1-4eb0-91c7-36926d81b09e",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Security Config Only",
"description": "encryption, tokenization, masking",
"data": {
"encryption": {
"read": true,
"create": true,
"update": true,
"rotation_key": true,
"list_rotation_key": true,
"delete_rotation_key": true,
"encrypt": true,
"decrypt": true
},
"tokenization": {
"read": true,
"create": true,
"update": true,
"tokenize": true,
"detokenize": true
},
"masking": {
"read": true,
"create": true,
"update": true,
"masking": true
},
"access_token": {},
"group": {},
"users": {},
"audit": {},
"backup_restore": {},
"license": {},
"taka_lock": {},
"decrypt_client": {},
"syslog_log_integration": {},
"splunk_log_integration": {},
"loki_log_integration": {},
"notification": {}
},
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_at": 1784102813,
"updated_at": 1784103367
}
}

Field Descriptions​

FieldTypeDescription
idUUIDUnique identifier of the permission set
tenant_idUUIDIdentifier of the tenant that owns the permission set
nameStringName of the permission set
descriptionStringDescription of the permission set
dataObjectObject mapping each module to the actions granted by this permission
created_byUUIDIdentifier of the user who created the permission set
updated_byUUIDIdentifier of the user who last updated the permission set
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format

info
  • A valid Bearer Token is required to access this endpoint.
  • The id path parameter must reference an existing permission set.
  • In the response, only granted (true) actions are returned. Modules with no granted actions are returned as an empty object {}.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.