# Update member

`PATCH /v1/members/{id}`

Changes the role of a person, or sends an invitation again.

Needs the scope: `workspace:write`

## Path parameters

- `id` (string, required): The id of the item. Up to 64 characters.

## Body parameters

- `role` (string): A new role: `admin`, `member` or `viewer`. One of: `admin`, `member`, `viewer`.
- `resend` (boolean): Send the invitation again. Only for someone who has not joined yet.

## Returns

- `object` ("member"): Always `member`.
- `id` (string): The id of the member.
- `name` (string): The name of the person.
- `email` (string): The address of the person.
- `role` (string): What the member may do: `owner`, `admin`, `member` or `viewer`. One of: `owner`, `admin`, `member`, `viewer`.
- `status` (string): `invited` until the person signs in, `active` after that. One of: `active`, `invited`.
- `invitedBy` (string): The name of who invited them.
- `invitedAt` (string | null): When the invitation was sent, or `null` for the person who made the workspace.
- `lastActiveAt` (string | null): When the member last used the workspace, or `null`.
- `invitationUrl` (string | null): A link that lets an invited person choose a password and join without an emailed code, or `null`. Only the owner of a server a team hosts itself is given it, signed in, while the invitation is waiting.
- `createdAt` (string): When the member was added.

## Example

cURL:

```bash
curl -X PATCH "$OPENSEND_API_URL/v1/members/mem_grace" \
  -H "Authorization: Bearer $OPENSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "admin"
}'
```

TypeScript:

```ts
await opensend.members.update('mem_grace', {
  role: 'admin',
})
```

CLI:

```bash
opensend members update mem_grace --role admin
```

MCP:

```json
{
  "name": "members_update",
  "arguments": {
    "id": "mem_grace",
    "role": "admin"
  }
}
```

Answer:

```json
{
  "object": "member",
  "id": "mem_grace",
  "name": "Grace Hopper",
  "email": "grace@example.com",
  "role": "admin",
  "status": "active",
  "invitedBy": "",
  "invitedAt": null,
  "lastActiveAt": "2026-11-27T09:18:00.000Z",
  "invitationUrl": null,
  "createdAt": "2026-01-15T09:30:00.000Z"
}
```
