> ## 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</Warning>

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`

<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.
</Warning>

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