PATCH/api/orgs/{org_id}/members/{user_id}

Put a member into a group

Keys the member creates from the dashboard afterwards land in this group. Their existing keys keep their group: move a key with PATCH /api/orgs/{org_id}/keys/{key_id}. Org admin or the provisioning key.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • user_idstringrequired

    The member's user id (from GET /api/orgs/{org_id}/members).

Request body

  • identity_idstringrequired

    An active group of the org.

Responses

  • 200

    The member.

    Response
    • user_idstringrequired
    • emailstring | nullrequired
    • rolestringrequired

      admin or user.

    • identity_idstring | nullrequired

      The group the member's dashboard-created keys land in.

    • created_atstringrequired
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is not a provisioning key (inference keys are refused, reads included), or it is a customer-plan key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    Unknown organization, member or group.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 409

    The group is disabled.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    The body or query failed validation.

    Response
    • detailarray<object>required
      detail
      • typestring
      • locarray<string | integer>
      • msgstring

Request

curl -X PATCH 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/members/2e4a6c8e-0b1d-4f3a-9c5e-7a9c1e3b5d58' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "identity_id": "data-team-5d2b7e19"
}'

Response

{
  "user_id": "2e4a6c8e-0b1d-4f3a-9c5e-7a9c1e3b5d58",
  "email": "raj@acme.example",
  "role": "user",
  "identity_id": "data-team-5d2b7e19",
  "created_at": "2026-11-12T16:40:00Z"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/members/2e4a6c8e-0b1d-4f3a-9c5e-7a9c1e3b5d58