Snooze Task
Snooze an actionable task until a future datetime.
POST
/
v1
/
tasks
/
{task_id}
/
snooze
Snooze Task
curl --request POST \
--url https://api.topo.io/v1/tasks/{task_id}/snooze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snoozed_until": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snoozed_until: '2023-11-07T05:31:56Z'})
};
fetch('https://api.topo.io/v1/tasks/{task_id}/snooze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/tasks/{task_id}/snooze"
payload = { "snoozed_until": "2023-11-07T05:31:56Z" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozed_until": "2023-11-07T05:31:56Z"
}Snooze an actionable task until a future datetime.
Requires the
tasks:write scope on the API key.Authorizations
Bearer API key issued from Settings → Developers.
Path Parameters
ID of the task.
Body
application/json
Snooze Task payload
When the task should re-enter the active queue. Must be timezone-aware and in the future.
Was this page helpful?
⌘I
Snooze Task
curl --request POST \
--url https://api.topo.io/v1/tasks/{task_id}/snooze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snoozed_until": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snoozed_until: '2023-11-07T05:31:56Z'})
};
fetch('https://api.topo.io/v1/tasks/{task_id}/snooze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/tasks/{task_id}/snooze"
payload = { "snoozed_until": "2023-11-07T05:31:56Z" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"snoozed_until": "2023-11-07T05:31:56Z"
}