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>",
  "permissions": [
    {
      "subject": "secrets",
      "action": "read",
      "inverted": true,
      "conditions": {
        "environment": "<string>",
        "secretPath": "<string>",
        "secretName": "<string>",
        "secretTags": {
          "$in": [
            "<string>"
          ]
        },
        "eventType": "<string>"
      }
    }
  ],
  "type": {
    "isTemporary": false
  },
  "slug": "<string>"
}
'
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
identityId
string
required

The ID of the machine identity to create the privilege for.

Minimum string length: 1
projectId
string
required

The ID of the project of the identity in.

Minimum string length: 1
permissions
object[]
required

The permission for the privilege.

type
object
required
slug
string

The slug of the privilege to create.

Required string length: 1 - 60

Response

Default Response

privilege
object
required