Skip to main content
POST
/
api
/
v2
/
identity-project-additional-privilege
cURL
curl --request POST \
  --url https://us.infisical.com/api/v2/identity-project-additional-privilege \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "identityId": "<string>",
  "projectId": "<string>",
  "slug": "<string>",
  "permissions": [
    "<any>"
  ],
  "type": {
    "isTemporary": true
  }
}'
{
  "privilege": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "slug": "<string>",
    "projectMembershipId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "isTemporary": false,
    "temporaryMode": "<string>",
    "temporaryRange": "<string>",
    "temporaryAccessStartTime": "2023-11-07T05:31:56Z",
    "temporaryAccessEndTime": "2023-11-07T05:31:56Z",
    "permissions": [
      {
        "subject": "<string>",
        "action": "<string>",
        "conditions": "<any>",
        "inverted": true
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
identityId
string
required

The ID of the identity to create the privilege for.

Minimum length: 1
projectId
string
required

The ID of the project of the identity in.

Minimum length: 1
permissions
object[]
required

The permission for the privilege.

  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
  • Option 14
  • Option 15
  • Option 16
  • Option 17
  • Option 18
  • Option 19
  • Option 20
  • Option 21
  • Option 22
  • Option 23
  • Option 24
  • Option 25
  • Option 26
  • Option 27
  • Option 28
  • Option 29
  • Option 30
  • Option 31
  • Option 32
  • Option 33
  • Option 34
  • Option 35
  • Option 36
  • Option 37
  • Option 38
  • Option 39
  • Option 40
  • Option 41
  • Option 42
  • Option 43
  • Option 44
  • Option 45
  • Option 46
type
object
required
  • Option 1
  • Option 2
slug
string

The slug of the privilege to create.

Required string length: 1 - 60

Response

Default Response

privilege
object
required