BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Organizations

Update a member

Partially updates a member's role, team assignment, or monthly budget — only fields explicitly present in the body are changed. Only an org_admin of that organization may call this. This endpoint has **no** "cannot demote the last org_admin" safeguard (that protection exists only on delete) — it is possible, in principle, to demote every org_admin this way, leaving the organization with none. This is verified current behavior, not a documentation simplification.

PATCH/api/v1/orgs/:orgId/members/:memberId

Authorizations

Authorizationrequired
string · header

API key as bearer token in the Authorization header.

Path parameters

orgIdrequired
string

The organization ID, from a GET /orgs response.

memberIdrequired
string

The member ID, from a list-members or add-a-member response.

Body

role
string

The member's new role.

org_adminbilling_viewerteam_adminmember
teamId
string | null

Reassigns the member to a given team; pass null to unassign from any team.

monthlyBudget
number | null

Monthly budget in USD; pass null to clear it.

PATCH /api/v1/orgs/:orgId/members/:memberId
curl -X PATCH https://bazaarlink.ai/api/v1/orgs/org_abc123/members/orgmem_abc123 \
  -H "Authorization: Bearer $BAZAARLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role": "team_admin"}'
Response examples

Updated. Returns the member's current state.

{
  "member": {
    "id": "orgmem_abc123",
    "role": "team_admin",
    "monthlyBudget": 100,
    "joinedAt": "2026-04-01T00:00:00.000Z",
    "teamId": "team_abc123",
    "user": {
      "id": "usr_xyz789",
      "name": "Jane Doe",
      "email": "jane@acme.com"
    },
    "team": {
      "id": "team_abc123",
      "name": "Engineering"
    }
  }
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Update a member — BazaarLink API