Skip to main content
POST
/
auth
/
permissions
/
add
Add Permissions
curl --request POST \
  --url https://api.velt.dev/v2/auth/permissions/add \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <api-key>' \
  --header 'x-velt-auth-token: <api-key>' \
  --data '{
  "data": {
    "user": {
      "userId": "some-user-id"
    },
    "permissions": {
      "resources": [
        {
          "type": "organization",
          "id": "YOUR_ORGANIZATION_ID",
          "accessRole": "editor"
        }
      ]
    }
  }
}'
{
  "result": {
    "status": "success",
    "message": "Operation completed successfully",
    "data": {}
  }
}

Authorizations

x-velt-api-key
string
header
required

Your API key from the Velt Console

x-velt-auth-token
string
header
required

Your Auth Token for authentication

Body

application/json
data
object
required

Response

Permissions added successfully

result
object