Components APIs
curl -i -X GET \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks?client_id=string&employee_id=string&employer_id=string&expired_at_gte=2019-08-24T14%3A15%3A22Z&expired_at_lte=2019-08-24T14%3A15%3A22Z&job_id=string&page=1&per_page=20' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": [ { … } ], "total": 0 }
Body
Datetime for when the task expires. If not included in the request payload, default value from the form will be used (when applicable). Set this property to null
if you do not want this task to inherit form default expiration time.
curl -i -X POST \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks?allow_duplicate=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"form_id": "string",
"employee_id": "string",
"employer_id": "string",
"client_id": "string",
"job_id": "string",
"expired_at": "2019-08-24T14:15:22Z",
"due_at": "2019-08-24T14:15:22Z"
}'
{ "id": "string", "form_id": "string", "form_custom_attributes": {}, "name": "string", "employee_id": "string", "employer_id": "string", "client_id": "string", "job_id": "string", "status": "requires_action", "next_action": { "type": "employer_action" }, "expired_at": "2019-08-24T14:15:22Z", "due_at": "2019-08-24T14:15:22Z", "progress": { "percent": 0, "numerator": 0, "denominator": 0 }, "subtasks": [ { … } ], "tags": [ { … } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X GET \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "id": "string", "form_id": "string", "form_custom_attributes": {}, "name": "string", "employee_id": "string", "employer_id": "string", "client_id": "string", "job_id": "string", "status": "requires_action", "next_action": { "type": "employer_action" }, "expired_at": "2019-08-24T14:15:22Z", "due_at": "2019-08-24T14:15:22Z", "progress": { "percent": 0, "numerator": 0, "denominator": 0 }, "subtasks": [ { … } ], "tags": [ { … } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X PATCH \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"expired_at": "2019-08-24T14:15:22Z"
}'
{ "id": "string", "form_id": "string", "form_custom_attributes": {}, "name": "string", "employee_id": "string", "employer_id": "string", "client_id": "string", "job_id": "string", "status": "requires_action", "next_action": { "type": "employer_action" }, "expired_at": "2019-08-24T14:15:22Z", "due_at": "2019-08-24T14:15:22Z", "progress": { "percent": 0, "numerator": 0, "denominator": 0 }, "subtasks": [ { … } ], "tags": [ { … } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X DELETE \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "id": "string", "form_id": "string", "form_custom_attributes": {}, "name": "string", "employee_id": "string", "employer_id": "string", "client_id": "string", "job_id": "string", "status": "requires_action", "next_action": { "type": "employer_action" }, "expired_at": "2019-08-24T14:15:22Z", "due_at": "2019-08-24T14:15:22Z", "progress": { "percent": 0, "numerator": 0, "denominator": 0 }, "subtasks": [ { … } ], "tags": [ { … } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
curl -i -X GET \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}/fields' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "fields": [ { … } ] }
curl -i -X PATCH \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}/fields' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fields": [
{
"path": "string",
"value": null
}
]
}'
curl -i -X GET \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}/pdf' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X GET \
'https://docs.onboarded.com/_mock/openapi/api/v1/tasks/{id}/onboarding?assignee_type=employee&locale=en&redirect_to=http%3A%2F%2Fexample.com' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'