Comments
Update Comment
Comments
Update Comment
Update task comment.
PATCH
/
api
/
v1
/
tasks
/
{task_uid}
/
comments
/
{uid}
curl --request PATCH \
--url https://api.onfragment.com/api/v1/tasks/{task_uid}/comments/{uid} \
--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": [
{}
],
"styles": {},
"props": {}
}
],
"children": [
{}
]
}
],
"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": [
{}
],
"styles": {},
"props": {}
}
],
"children": [
{}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Body
application/json
TaskComment schema.
Response
200
application/json
Successful Response
TaskComment schema.
curl --request PATCH \
--url https://api.onfragment.com/api/v1/tasks/{task_uid}/comments/{uid} \
--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": [
{}
],
"styles": {},
"props": {}
}
],
"children": [
{}
]
}
],
"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": [
{}
],
"styles": {},
"props": {}
}
],
"children": [
{}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}