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

# manage_team_config

> Team and organization administration: custom fields, routing rules, offices, company details and agent accounts.

> [!WARNING]
>
> **WRITE** · 10 operations · may change data

Team and organization administration: create a custom field, edit routing rules, update office or company details, add an agent, deactivate or reactivate one.

```js theme={null}
manage_team_config({ action, routing_type?, agent_id?, fields?, confirm_token? })
```

`action`: `add_custom_field` · `update_routing_rule` · `update_default_routing_rule` · `add_office` · `update_office` · `update_company` · `add_agent` · `add_agent_tag` · `deactivate_agent` · `reactivate_agent`

| `action` | Required | Notes |
| - | - | - |
| `add_custom_field` | `fields.attributeName`, `fields.attributeType` | `attributeType` is one of `text`/`number`/`date`/`anniversary_date`/`single_select`/`multi_select`/`percentage`/`currency`. The two select types additionally require `fields.params`, e.g. `{"option": ["item1", "item2"]}`. |
| `update_routing_rule` / `update_default_routing_rule` | `routing_type` | Only `"agent_lead"`, `"lender_lead"` and `"assistant_lead"` are accepted — no others. |
| `add_agent_tag` / `deactivate_agent` / `reactivate_agent` | `agent_id` | — |

> [!WARNING]
>
> `deactivate_agent` frees a license seat and revokes that agent's sessions and tokens. It's materially riskier than anything else in this tool and always requires confirmation.

> [!NOTE]
>
> The one HTTP-verb inversion in the whole API: `PUT` **creates** an office, `POST` to the same path **updates** one — hidden behind `add_office`/`update_office` so you never need to know it.


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