Create a new case
POST
/cases
const url = 'https://api.waku-robotics.com/v1/cases';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"assignee_id":"example","deployment_id":"example","name":"example","status":"example","workspace_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.waku-robotics.com/v1/cases \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "assignee_id": "example", "deployment_id": "example", "name": "example", "status": "example", "workspace_id": "example" }'Create a new case
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Case
Media typeapplication/json
object
assignee_id
The ID of the user to which this case should be assigned
string
deployment_id
required
The ID of the deployment in which the case should be created
string
name
required
The name of the case
string
status
required
The initial status of the case
string
workspace_id
required
The ID of the workspace in which the case should be created
string
Example generated
{ "assignee_id": "example", "deployment_id": "example", "name": "example", "status": "example", "workspace_id": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
created_at
required
string
deployment_id
required
string
device_id
string
id
required
string
name
required
string
status
required
string
updated_at
required
string
Example generated
{ "created_at": "example", "deployment_id": "example", "device_id": "example", "id": "example", "name": "example", "status": "example", "updated_at": "example"}default
Section titled “default”Media typeapplication/json
object
code
integer
message
string
Example generated
{ "code": 1, "message": "example"}
