Assigns one form to many employees in a single call. The batch and its parameters are validated synchronously: the form, employer/client/job scope, and every employee id must resolve, or the whole request is rejected and nothing is created. Task creation itself happens asynchronously; poll GET /task_batches/:task_batch_id for progress and per-item outcomes.
Security
form_session or user_session or component_session or component_token or api_token
Any of:
a string to be decoded into a DateTime.Utc
string(DateTimeUtc)
Any of:
a string to be decoded into a DateTime.Utc
string(DateTimeUtc)
Any of:
a string to be decoded into a DateTime.Utc
string(DateTimeUtc)
Any of:
a string to be decoded into a DateTime.Utc
string(DateTimeUtc)
an array of at most 1000 item(s)
- Mock serverhttps://docs.onboarded.com/_mock/openapi/api/v1/task_batches
- Onboarded Production Serverhttps://app.onboarded.com/api/v1/task_batches
curl -i -X POST \
https://docs.onboarded.com/_mock/openapi/api/v1/task_batches \
-H 'Authorization: Bearer <YOUR_Onboarded form session token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"form_id": "tlin_abc123def456",
"employer_id": "er_abc123def456",
"client_id": "cl_abc123def456",
"job_id": "job_abc123def456",
"expired_at": "string",
"due_at": "string",
"deletion_scheduled_at": "string",
"deletion_allowed_at": "string",
"employee_ids": [
"ee_abc123def456"
],
"allow_duplicate": true
}'TaskBatch
Response
{ "id": "tb_abc123def456", "status": "processing", "form_id": "tlin_abc123def456", "employer_id": "er_abc123def456", "client_id": "cl_abc123def456", "job_id": "job_abc123def456", "total_count": 0, "result_counts": { "pending": 0, "completed": 0, "failed": 0 }, "items": [ { … } ], "_tag": "TaskBatch" }