# Change a teammate

```http
PATCH https://trydimmi.com/api/v1/members/{member}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `members:write`.

## Path parameters

- `member` (string, required): Id of the teammate (workspace member), starting with mem_, such as mem_01jx2m8k4t. Find it with GET /members.

## Body

- `access_team_ids` (string[]): Ids of the teams the conversation_access setting refers to, as a list, each starting with team_, such as ["team_01jx2m8k4t"]. Find them with GET /teams.
- `assign_on_reply` (string): The member's own rule for taking a conversation by replying to it: inherit follows the inbox's rule, always assigns what they answer to them, never means replying does not assign it to them. When updating yourself it sets your own rule. Such as always. One of: `inherit`, `always`, `never`.
- `availability` (string): online or away. One of: `online`, `away`.
- `away_reassign` (boolean): Whether, while the member is away, conversations whose customers reply go back to the team. true is only accepted when the member is away; going online turns it off. When updating yourself it applies to your own conversations. Example: true.
- `capacity_by_channel` (object): Object of the most open conversations the member holds per channel type: keys are widget, email or api, values are whole numbers from 1 to 500. It replaces the whole stored object. Such as {"email":20,"widget":5}.
- `conversation_access` (string): Which conversations the member sees: all, assigned (only theirs), teams (their access teams) or all_except_teams. Owners always see everything. Nobody can change their own access, so it is refused when updating yourself. Such as all. One of: `all`, `assigned`, `teams`, `all_except_teams`.
- `conversation_access_unassigned` (boolean): Whether a narrow access mode also shows the member conversations nobody is assigned to. It is part of conversation access, which nobody can change for themselves, so it is refused when updating yourself. Example: true.
- `conversation_capacity` (integer): Most open conversations the member (or you, when updating yourself) holds at once, 1 to 500, such as 20. null for no limit.
- `custom_role_id` (string): Id of a custom role to give the member, starting with rol_, such as rol_01jx2m8k4t, or null to take it away. Find it with GET /roles.
- `keep_owner` (boolean): Only allowed together with role set to owner. true keeps you an owner too after making someone else an owner; otherwise you become an admin. Example: true.
- `reassign_to_member_id` (string): With status deactivated: id of the teammate who takes the member's conversations, starting with mem_, such as mem_01jx2m8k4t. Find it with GET /members. It has no use when updating yourself, since nobody deactivates themselves.
- `role` (string): The member's built-in role: owner, admin or member. Any change to or from owner, your own included, needs an owner acting from their own browser in the app with a recent confirmation. Such as member. One of: `owner`, `admin`, `member`.
- `status` (string): Whether the member is active or deactivated. Nobody deactivates themselves, so deactivated is refused when updating yourself. Such as active. One of: `active`, `deactivated`.

## Response 200 (OK)

- `data` (object, required)
  - `access_team_ids` (string[] | null, required): Ids of the teams the member's conversation access names, such as team_...; used by the teams and all_except_teams modes. Empty otherwise.
  - `assign_on_reply` (string, required): The member's own rule for taking a conversation by replying to it: inherit (follow the workspace), always or never.
  - `availability` (string, required): What the member shows teammates and customers: online or away.
  - `away_reassign` (boolean, required): True when customers' answers go back to the pool while the member is away.
  - `away_since` (string | null, required): Since when the member has been away. Null while they are online.
  - `capacity_by_channel` (object, required): The most open conversations the member holds per channel type, such as {"email": 10, "widget": 5}. A channel left out has no limit of its own.
  - `conversation_access` (string, required): Which conversations the member sees: all, assigned (only their own), teams (their own plus the listed teams') or all_except_teams.
  - `conversation_access_unassigned` (boolean, required): True when a narrowed access mode also shows the member conversations nobody is assigned to.
  - `conversation_capacity` (integer | null, required): The most open conversations the member holds overall. Null for no limit.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `custom_role` (object, required)
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): Name of the custom role the member holds; may be empty when the response did not fill it in.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `deactivated_at` (string | null, required): When the member was deactivated. Null while they are active.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `joined_via` (string | null, required): How the member arrived in the workspace, such as created, cli or an invitation. Null when not recorded.
  - `last_active_at` (string | null, required): When the member last used the workspace. Null when never, and for callers who do not manage members.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `role` (string, required): The member's role in the workspace: owner, admin or member.
  - `sign_in_locked` (boolean | null, required): True when failed sign-in guesses locked the member's account. Null for callers who do not manage members.
  - `status` (string, required): Whether the member can work in the workspace: active or deactivated.
  - `teams` (object[]): The teams the member belongs to. Present only when the request asked for members' teams.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): The team's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `two_factor_enabled` (boolean | null, required): True when the member's account has a second sign-in factor. Null for callers who do not manage members.
  - `user` (object, required)
    - `avatar_url` (string | null, required): Address of the teammate's picture; null when they have none.
    - `email` (string, required): The teammate's email address.
    - `email_verified` (boolean, required): True when the teammate has confirmed their email address.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): The teammate's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/members/{member}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "access_team_ids": [
    "<string>"
  ],
  "assign_on_reply": "inherit",
  "availability": "online",
  "away_reassign": true,
  "capacity_by_channel": {
    "<key>": 123
  },
  "conversation_access": "all",
  "conversation_access_unassigned": true,
  "conversation_capacity": 123,
  "custom_role_id": "<string>",
  "keep_owner": true,
  "reassign_to_member_id": "<string>",
  "role": "owner",
  "status": "active"
}'
```

## Example response

```json
{
  "data": {
    "access_team_ids": [
      "<string>"
    ],
    "assign_on_reply": "<string>",
    "availability": "<string>",
    "away_reassign": true,
    "away_since": "2026-11-01T09:30:00Z",
    "capacity_by_channel": {
      "<key>": 123
    },
    "conversation_access": "<string>",
    "conversation_access_unassigned": true,
    "conversation_capacity": 123,
    "created_at": "2026-11-01T09:30:00Z",
    "custom_role": {
      "id": "<string>",
      "name": "<string>",
      "object": "<string>"
    },
    "deactivated_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "joined_via": "<string>",
    "last_active_at": "2026-11-01T09:30:00Z",
    "object": "<string>",
    "role": "<string>",
    "sign_in_locked": true,
    "status": "<string>",
    "teams": [
      {
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      }
    ],
    "two_factor_enabled": true,
    "user": {
      "avatar_url": "<string>",
      "email": "<string>",
      "email_verified": true,
      "id": "<string>",
      "name": "<string>",
      "object": "<string>"
    }
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
