update organization details to accept an invitation.md

Update organization details (to accept an invitation).

PATCH https://app.mk.io/api/v1/user/organizations/{organization_id}

The only field that can be modified is the invite state, and that should be set to 'accepted' to accept a 'pending' invitation to work with a new organization. To decline a pending invitation, use the DELETE method instead.

Requires authentication; no additional RBAC permissions required.

Authentication

Path parameters

Name Type Required Description
organization_id string Yes format: uuid

Request body

Content type: application/json

Example request

curl -X PATCH "https://app.mk.io/api/v1/user/organizations/{organization_id}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "spec": {
    "invite": {
      "state": "accepted"
    }
  }
}'

Responses

200 — OK

400 — Bad Request

401 — Unauthorized


Source spec: management-api · operationId: [patch]_/api/v1/user/organizations/{organization_id}