latestOpenAPI 3.1.02026-08-171503582.2 MB
6199a9464227
One-Off Tasks
Complete a one-off task
Sets the task status to Completed. No-op if already completed. Returns the updated task.
post/work/tasks/{taskId}/complete
Path parameters
taskIdstring required
The ID of the One-Off Task
Response
Example response
{
"data": {
"id": "mlbxbYW5BxoKZyuz0GtEhg",
"createdBy": {
"id": "naAJxoDIuwdgNsQHGRRGqA",
"email": "jane.doe@example.com",
"username": "Jane Doe"
},
"updatedBy": {
"id": "naAJxoDIuwdgNsQHGRRGqA",
"email": "jane.doe@example.com",
"username": "Jane Doe"
},
"assignments": [
{
"user": {
"id": "naAJxoDIuwdgNsQHGRRGqA",
"email": "jane.doe@example.com",
"username": "Jane Doe"
}
}
],
"linkedWorkflowRun": {
"id": "hhY3-a3YNHpYViPMvqJOCQ",
"templateId": "hhY3-a3YNHpYViPMvqJOCQ"
},
"links": [
{
"href": "https://api.process.st/api/v1.1/resource/XXX"
}
]
},
"links": [
{
"href": "https://api.process.st/api/v1.1/resource/XXX"
}
]
}