v20

OpenAPI 3.1.0raw.githubusercontent.com2026-08-01970424.3 KB
Permissions

Grant a global permission to a user

Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)

post/project-permissions/{user_id}/{permission_id}

Path parameters

user_idstring

The ID of the user, or the special value me for the currently authenticated user

Example:3241a285-8329-4d69-8f3d-316e08cf140c

The ID of the user, or the special value me for the currently authenticated user

permission_idstring

The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, :, and _ characters, or one of the system permissions: $update_team, $delete_team, $read_members, $remove_members, $invite_members, $manage_api_keys

Example:read_secret_info

The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, :, and _ characters, or one of the system permissions: $update_team, $delete_team, $read_members, $remove_members, $invite_members, $manage_api_keys

Request body

object required

Example request

{}

Response

Successful response

idstring required

The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, :, and _ characters, or one of the system permissions: $update_team, $delete_team, $read_members, $remove_members, $invite_members, $manage_api_keys

user_idstring required

The unique identifier of the user

Example response

{
  "id": "read_secret_info",
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}