Apply Directory Batch
apply_directory_batchApply a directory batch of people, teams and memberships, only after review_directory_batch showed your user its exact changes and they approved. Pass that review's confirmation_token and the batch unchanged; a changed batch is refused. It applies atomically, once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirmation_token": "<confirmation_token>",
"batch": "<batch>"
},
"name": "apply_directory_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch | Yes | People, teams and memberships linked by ref; reference existing people and teams by user_id or team_id. The owner role can't be assigned here. | |
| confirmation_token | Yes | The confirmation_token review_directory_batch returned for this exact batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teams | Yes | Each team ref from the batch, mapped to its team ID. | |
| people | Yes | Each person ref from the batch, mapped to their user ID. | |
| batch_id | Yes | The applied batch's ID. | |
| replayed | Yes | True when this key was applied before and the first result is returned again. | |
| request_hash | Yes | The hash of the exact batch that was applied. | |
| idempotency_key | Yes | The batch's idempotency_key, as sent. | |
| directory_link_ids | Yes | IDs of the team directory links created or updated. | |
| team_membership_ids | Yes | IDs of the team memberships created or updated. | |
| external_identity_ids | Yes | IDs of the external handles created or updated. |