Tasks
Create Many
Tasks
Create Many
Create tasks.
POST
/
api
/
v1
/
tasks
/
batch
curl --request POST \
--url https://api.onfragment.com/api/v1/tasks/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"status_global": "TODO",
"legacy_data": {},
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_email": "<string>",
"participants": {},
"case_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fields": {},
"due_at": "2023-11-07T05:31:56Z",
"form_data": {},
"form_type": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"done_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"assignee_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_assigned_player": true,
"external_created_at": "2023-11-07T05:31:56Z",
"external_updated_at": "2023-11-07T05:31:56Z",
"external_status": "TODO",
"external_status_updated_at": "2023-11-07T05:31:56Z",
"external_assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"meta": {
"before_cursor": "<string>",
"after_cursor": "<string>"
}
}'
{
"items": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"legacy_data": {},
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_uid_expression": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_uid_column": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"participants": {},
"case_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2023-11-07T05:31:56Z",
"fields": {},
"form_data": {},
"form_type": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"done_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"assignee_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_assigned_player": true,
"internal_created_at": "2023-11-07T05:31:56Z",
"internal_updated_at": "2023-11-07T05:31:56Z",
"external_created_at": "2023-11-07T05:31:56Z",
"external_updated_at": "2023-11-07T05:31:56Z",
"external_status": "TODO",
"external_status_updated_at": "2023-11-07T05:31:56Z",
"external_assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_time": 123,
"queue_time_business": 123,
"work_time": 123,
"work_time_business": 123,
"incremental_work_time": 123,
"incremental_work_time_business": 123,
"resolution_time": 123,
"resolution_time_business": 123,
"num_children": 123,
"num_children_done": 123,
"sla_breach_at": "2023-11-07T05:31:56Z",
"sla_breach_business_at": "2023-11-07T05:31:56Z",
"wait_time": 123,
"wait_time_business": 123,
"played_at": "2023-11-07T05:31:56Z",
"reviewer_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"review_form_data": {},
"reviewed_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"before_cursor": "<string>",
"after_cursor": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Body
application/json
Task Create schema, columns with default can be unset.
Task Status Enum.
Available options:
TODO
, STARTED
, DONE
Task global status enum.
Available options:
TODO
, DONE
Task Status Enum.
Available options:
TODO
, STARTED
, DONE
Response
200
application/json
Successful Response
Task schema, same as Task Model.
Task Status Enum.
Available options:
TODO
, STARTED
, DONE
Task Status Enum.
Available options:
TODO
, STARTED
, DONE
curl --request POST \
--url https://api.onfragment.com/api/v1/tasks/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"status_global": "TODO",
"legacy_data": {},
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_email": "<string>",
"participants": {},
"case_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fields": {},
"due_at": "2023-11-07T05:31:56Z",
"form_data": {},
"form_type": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"done_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"assignee_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_assigned_player": true,
"external_created_at": "2023-11-07T05:31:56Z",
"external_updated_at": "2023-11-07T05:31:56Z",
"external_status": "TODO",
"external_status_updated_at": "2023-11-07T05:31:56Z",
"external_assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"meta": {
"before_cursor": "<string>",
"after_cursor": "<string>"
}
}'
{
"items": [
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"legacy_data": {},
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_uid_expression": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_uid_column": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"participants": {},
"case_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"due_at": "2023-11-07T05:31:56Z",
"fields": {},
"form_data": {},
"form_type": "<string>",
"assigned_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"done_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"assignee_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_assigned_player": true,
"internal_created_at": "2023-11-07T05:31:56Z",
"internal_updated_at": "2023-11-07T05:31:56Z",
"external_created_at": "2023-11-07T05:31:56Z",
"external_updated_at": "2023-11-07T05:31:56Z",
"external_status": "TODO",
"external_status_updated_at": "2023-11-07T05:31:56Z",
"external_assignee_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"queue_time": 123,
"queue_time_business": 123,
"work_time": 123,
"work_time_business": 123,
"incremental_work_time": 123,
"incremental_work_time_business": 123,
"resolution_time": 123,
"resolution_time_business": 123,
"num_children": 123,
"num_children_done": 123,
"sla_breach_at": "2023-11-07T05:31:56Z",
"sla_breach_business_at": "2023-11-07T05:31:56Z",
"wait_time": 123,
"wait_time_business": 123,
"played_at": "2023-11-07T05:31:56Z",
"reviewer_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"review_form_data": {},
"reviewed_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"before_cursor": "<string>",
"after_cursor": "<string>"
}
}