> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Organization Members

> Add or remove members from an organization.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**org\_id** `string` *required*

The unique identifier of the organization.

### Body

**action** `string` *required*

The action to perform.\
\
Valid values: `"add"`, `"remove"`

**target** `string` *required*

Who to add or remove. Accepts an existing user ID, a phone number (E.164 format, e.g. `+14155550123`), or an email address.\
\
When you pass a phone number or email that doesn't match an existing user, an invitation is created. Phone number invitees receive an SMS, and email invitees receive a sign-up link. Invitees are automatically added to the organization when they sign up with the same phone number or email.

**permissions** `string[]`

A list of permissions to assign when adding a member.\
\
Required only when `action` is `"add"`.\
\
Valid values: `"owner"`, `"admin"`, `"operator"`, `"viewer"`

**is\_invite** `boolean`

Whether the removal applies to an invite instead of a full member.\
\
Required only when `action` is `"remove"`.

### Response

**data** `null`

Always `null` upon successful update.

**errors** `null`

Always `null` on success.

```json Response   theme={null}
{
  "data": null,
  "errors": null
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.