Skip to content

Update workspace invitation ​

PATCH/api/v1/workspaces/{slug}/invitations/{pk}/

Update a workspace invite

Path Parameters ​

pk:requiredstring

Workspace invite ID

slug:requiredstring

Workspace slug

Body Parameters ​

email:optionalstring

Email.

role:optionalinteger
  • 20 - Admin
  • 15 - Member
  • 5 - Guest

Scopes ​

Workspace admin or owner permission required.

Update workspace invitation
bash
curl -X PATCH \
  "https://api.plane.so/api/v1/workspaces/my-workspace/invitations/550e8400-e29b-41d4-a716-446655440000/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  # Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "Example Name",
  "role": 20
}'
Response200
json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "email": "Example Name",
  "role": 20,
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z",
  "responded_at": "2024-01-01T00:00:00Z",
  "accepted": true
}