Skip to main content
PUT
/
org
/
rules
/
permissions
/
{provider}
Set app permissions
curl --request PUT \
  --url https://api.onecli.sh/v1/org/rules/permissions/{provider} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "changes": [
    {
      "toolId": "<string>"
    }
  ],
  "conditions": [
    {
      "target": "<string>",
      "operator": "<string>",
      "value": "<string>",
      "key": "<string>"
    }
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

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

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

provider
string
required

App provider identifier (e.g., gmail, github, jira)

Body

application/json
changes
object[]
required
Minimum array length: 1
conditions
object[]
Maximum array length: 10

Response

Permissions updated

The response is of type object.