cURL
curl --request PATCH \ --url https://us.infisical.com/api/v2/identity-project-additional-privilege/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "slug": "<string>", "permissions": [ { "subject": "secrets", "action": "read", "inverted": true, "conditions": { "environment": "<string>", "secretPath": "<string>", "secretName": "<string>", "secretTags": { "$in": [ "<string>" ] }, "eventType": "<string>" } } ], "type": { "isTemporary": false } } '
{ "privilege": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "slug": "<string>", "permissions": [ { "action": "<string>", "subject": "<string>", "conditions": "<unknown>", "inverted": true } ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "isTemporary": false, "temporaryMode": "<string>", "temporaryRange": "<string>", "temporaryAccessStartTime": "2023-11-07T05:31:56Z", "temporaryAccessEndTime": "2023-11-07T05:31:56Z" } }
Update a specific identity privilege.
An access token in Infisical
The ID of the identity privilege.
The slug of the privilege to update.
1 - 60
The permission for the privilege.
Show child attributes
The entity this permission pertains to.
secrets
Describe what action an entity can take.
read
describeSecret
readValue
create
edit
delete
Whether rule allows or forbids.
When specified, only matching conditions will be allowed to access given resource.
1
Whether the privilege is temporary.
true
false
Default Response
Was this page helpful?