Skip to main content
PATCH
/
api
/
v2
/
identity-project-additional-privilege
/
{id}
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>"
          ],
          "$all": [
            "<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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://infisical.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

id
string
required

The ID of the identity privilege.

Body

application/json
slug
string
required

The slug of the privilege to update.

Required string length: 1 - 60
permissions
object[]
required

The permission for the privilege.

type
object
required

Response

Default Response

privilege
object
required