curl --request POST \
--url https://api.onfragment.com/api/v1/tasks/{task_uid}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"task_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"blocks": [
{
"id": "<string>",
"type": "<string>",
"props": {},
"content": [
{
"type": "<string>",
"text": "<string>",
"href": "<string>",
"content": "<array>",
"styles": {},
"props": {}
}
],
"children": "<array>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
'{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"task_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"blocks": [
{
"id": "<string>",
"type": "<string>",
"props": {},
"content": [
{
"type": "<string>",
"text": "<string>",
"href": "<string>",
"content": "<array>",
"styles": {},
"props": {}
}
],
"children": "<array>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"task": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"legacy_data": {},
"skills": [
"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",
"snooze_expires_at": "2023-11-07T05:31:56Z",
"fields": {},
"metadata_form_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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,
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sla_breach_at": "2023-11-07T05:31:56Z",
"sla_breach_business_at": "2023-11-07T05:31:56Z",
"wait_time": 123,
"wait_time_business": 123,
"review_status": "<string>",
"task_type": "<string>",
"played_at": "2023-11-07T05:31:56Z",
"assignee": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"role": "super_admin",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"legacy_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_registered": true
},
"parent": "<unknown>",
"children": [
"<unknown>"
],
"comments": [
"<unknown>"
]
},
"author": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"role": "super_admin",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"legacy_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_registered": true
}
}Create a task comment.
curl --request POST \
--url https://api.onfragment.com/api/v1/tasks/{task_uid}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"task_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"blocks": [
{
"id": "<string>",
"type": "<string>",
"props": {},
"content": [
{
"type": "<string>",
"text": "<string>",
"href": "<string>",
"content": "<array>",
"styles": {},
"props": {}
}
],
"children": "<array>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
'{
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"task_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"blocks": [
{
"id": "<string>",
"type": "<string>",
"props": {},
"content": [
{
"type": "<string>",
"text": "<string>",
"href": "<string>",
"content": "<array>",
"styles": {},
"props": {}
}
],
"children": "<array>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"task": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"status": "TODO",
"legacy_data": {},
"skills": [
"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",
"snooze_expires_at": "2023-11-07T05:31:56Z",
"fields": {},
"metadata_form_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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,
"queue_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sla_breach_at": "2023-11-07T05:31:56Z",
"sla_breach_business_at": "2023-11-07T05:31:56Z",
"wait_time": 123,
"wait_time_business": 123,
"review_status": "<string>",
"task_type": "<string>",
"played_at": "2023-11-07T05:31:56Z",
"assignee": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"role": "super_admin",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"legacy_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_registered": true
},
"parent": "<unknown>",
"children": [
"<unknown>"
],
"comments": [
"<unknown>"
]
},
"author": {
"uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archived": true,
"role": "super_admin",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"skills": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"legacy_data": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_registered": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
TaskComment schema.
Show child attributes
Successful Response
TaskComment schema.
Show child attributes
Task schema, same as Task Model.
Show child attributes
Task Status Enum.
TODO, STARTED, DONE Task Status Enum.
TODO, STARTED, DONE User Schema.
Show child attributes
User Role Enum.
super_admin, admin, member User Schema.
Show child attributes
User Role Enum.
super_admin, admin, member