Update a task
Updates a task instance. Currently supports marking tasks as complete.
POST
/v1/hq/tasks/{task_id}Authorization
BearerTokenAuth
AuthorizationBearer <token>
The Noona HQ API uses Bearer token for authentication.
Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.
Authorization: Bearer your-token
In: header
Path Parameters
task_id*string
Example
"dwawd8awudawd"Request Body
application/json
company_id*string
The company ID that owns the task
completed?boolean
Set to true to mark the task as complete. For manual tasks only. Computed tasks are automatically evaluated.
Response Body
application/json
curl -X POST "https://api.noona.is/v1/hq/tasks/dwawd8awudawd" \ -H "Content-Type: application/json" \ -d '{ "company_id": "string" }'{
"id": "7awdXwZoedakjad37a",
"company_id": "7awdXwZoedakjad37a",
"goal_instance": "7awdXwZoedakjad37a",
"task_template": "task_create_services",
"title": "Create your services",
"description": "Add at least one service to your catalog",
"completion_method": "manual",
"order": 1,
"prerequisites": [
"task_create_services"
],
"icon": "Calendar",
"action": {
"title": "Go to services",
"completed_title": "View",
"type": "navigate",
"navigate_to": "event_types",
"content": "Text to copy"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z",
"blocked": true
}Empty
Empty
Empty
Empty
Empty