# Rename a team

```http
PATCH https://trydimmi.com/api/v1/teams/{team}
```

## Authorization

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

## Path parameters

- `team` (string, required): Id of the team, starting with team_, such as team_01jx2m8k4t. Find it with GET /teams.

## Body

- `name` (string, required): The new name, 80 characters at most.

## Response 200 (OK)

- `data` (object, required)
  - `conversation_counts` (object)
    - `closed` (integer, required): How many of the team's conversations are closed.
    - `open` (integer, required): How many of the team's conversations are open.
    - `snoozed` (integer, required): How many of the team's conversations are snoozed.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `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.
  - `member_count` (integer, required): How many members the team has.
  - `members` (object[]): The team's members. Only present when the request asked to include them.
    - `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.
  - `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.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## 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/teams/{team}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "conversation_counts": {
      "closed": 123,
      "open": 123,
      "snoozed": 123
    },
    "created_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "member_count": 123,
    "members": [
      {
        "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": [
          {}
        ],
        "two_factor_enabled": true,
        "user": {
          "avatar_url": "<string>",
          "email": "<string>",
          "email_verified": true,
          "id": "<string>",
          "name": "<string>",
          "object": "<string>"
        }
      }
    ],
    "name": "<string>",
    "object": "<string>",
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

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