Skip to main content
PATCH
/
api
/
v1
/
spaces
/
{space_id}
/
permissions
Update Permissions
curl --request PATCH \
  --url https://api.example.com/api/v1/spaces/{space_id}/permissions \
  --header 'Content-Type: application/json' \
  --data '
{
  "permission_preset": "<string>"
}
'

Update Space Permissions

Change the permission preset for a space.

Authentication

Requires a valid user JWT token. Must be the space owner.

Path Parameters

space_id
string
required
UUID of the space.

Request Body

permission_preset
string
required
Permission preset to apply.

Example

curl -X PATCH https://api.ama2.me/api/v1/spaces/{space_id}/permissions \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"permission_preset": "public"}'