Tasks
GET
http://localhost:4000/api/v1 /posts/{postId}/tasks List the tasks on a post
Parameters
postIdstring
path
required
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/posts/{postId}/tasks" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /posts/{postId}/tasks Give a teammate a task on a post
Needs text and assigneeId (an Atlas user id); dueAt is optional. The assignee is told.
Parameters
postIdstring
path
required
Request body
application/json
assigneeIdstring
required
textstring
required
dueAtstring
{
"assigneeId": "string",
"text": "string",
"dueAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/posts/{postId}/tasks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"assigneeId":"string","text":"string","dueAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}POST
http://localhost:4000/api/v1 /posts/tasks Give a teammate the same task on up to 100 posts
Request body
application/json
assigneeIdstring
required
textstring
required
dueAtstring
postIdsstring[]
required
{
"assigneeId": "string",
"text": "string",
"dueAt": "2024-01-01T00:00:00Z",
"postIds": [
"string"
]
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/posts/tasks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"assigneeId":"string","text":"string","dueAt":"2024-01-01T00:00:00Z","postIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}DELETE
http://localhost:4000/api/v1 /posts/tasks/{id} Delete a task
Parameters
idstring
path
required
Code samples
cURL
curl -X DELETE "http://localhost:4000/api/v1/posts/tasks/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}PATCH
http://localhost:4000/api/v1 /posts/tasks/{id} Change a task, or mark it done
Parameters
idstring
path
required
Request body
application/json
textstring
dueAtstring
assigneeIdstring
doneboolean
{
"text": "string",
"dueAt": "2024-01-01T00:00:00Z",
"assigneeId": "string",
"done": true
}Code samples
cURL
curl -X PATCH "http://localhost:4000/api/v1/posts/tasks/{id}" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string","dueAt":"2024-01-01T00:00:00Z","assigneeId":"string","done":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated