Update an existing task
PUT
/tasks/{id}
const url = 'https://api.waku-robotics.com/v1/tasks/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"assignee_id":"example","name":"example","status":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.waku-robotics.com/v1/tasks/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "assignee_id": "example", "name": "example", "status": "example" }'Update an existing task
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Task ID
Request Body
Section titled “Request Body”Task
Media typeapplication/json
object
assignee_id
The ID of the user to which this task should be assigned
string
name
The name of the task
string
status
The status of the task
string
Example generated
{ "assignee_id": "example", "name": "example", "status": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
created_at
required
string
description
required
string
device_id
required
string
device_name
required
string
device_reference
required
string
id
required
string
name
required
string
notes
required
string
parts
Array<object>
object
location_id
required
string
note
required
string
part_id
required
string
quantity
required
integer
usage
required
string
resolved_at
string
started_at
string
status
required
string
template
object
id
required
string
title
required
string
updated_at
required
string
work_order_id
required
string
Example generated
{ "created_at": "example", "description": "example", "device_id": "example", "device_name": "example", "device_reference": "example", "id": "example", "name": "example", "notes": "example", "parts": [ { "location_id": "example", "note": "example", "part_id": "example", "quantity": 1, "usage": "example" } ], "resolved_at": "example", "started_at": "example", "status": "example", "template": { "id": "example", "title": "example" }, "updated_at": "example", "work_order_id": "example"}default
Section titled “default”Media typeapplication/json
object
code
integer
message
string
Example generated
{ "code": 1, "message": "example"}
