DepartmentTransfer
Deep scan dependencies for a bulk/department-deletion transfer
Bulk variant of /scan - accepts an array of { userId, targetDepartmentId } pairs (typically every member of a department being deleted) and returns the combined dependency manifest plus a scanVersion.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/departments/transfer/scan-bulk" \ -H "Content-Type: application/json" \ -d '{ "assignments": [ { "userId": "65b1f0a2c3d4e5f6a7b8c9d0", "targetDepartmentId": "65c1a0b0c0d0e0f0a0b0c0d1" }, { "userId": "65b2f0a2c3d4e5f6a7b8c9d1", "targetDepartmentId": "65c1a0b0c0d0e0f0a0b0c0d2" } ] }'{ "scanVersion": "v2026-05-18T12:00:00Z-abc123", "summary": { "prompts": 4, "automations": 2, "conversations": 17, "approvalPolicies": 1 }, "conflicts": []}