curl --request POST \
--url https://api.example.com/api/workforces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"manager_agent_id": 123,
"description": "<string>",
"manager_instructions": "<string>",
"canvas_layout": {},
"workers": [
{
"assignment_instructions": "<string>",
"source_type": "existing",
"agent_id": 123,
"alias": "<string>",
"enabled": true,
"sort_order": 123,
"canvas_position": {}
}
]
}
'