Skip to content
.seventhings.com

Prefill your credentials

Fill in your non-secret values to have them appear in the examples below. Stored locally in your browser.

Create a new Task

POST
/customer-api/v1/task-management/task
curl --request POST \
--url https://your-instance.seventhings.com/customer-api/v1/task-management/task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "Refill the printer.", "comment": "The printer is running low on ink.", "deadline": "2022-04-01", "reminders": [ { "unit": "days", "value": 2 } ], "recurring_schedule": { "unit": "days", "value": 2 }, "assignees": [ "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11" ], "references": [ { "type": "asset", "uuid": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "status": "open" } ], "attachments": [ "7d8296ad-da7c-45f7-b676-9220b3a9d4dc" ], "notify": true }'

Create a new Task.

Task to be created

Media typeapplication/json

The payload for creating a new task.

object
title
required

The title of the task.

string
Example
Refill the printer.
comment

A comment that is displayed in the task details.

string
nullable
Example
The printer is running low on ink.
deadline
required

The date and time of the deadline.

string format: date
Example
2022-04-01
reminders
required
Array<object>
>= 1 items <= 2 items

A time interval that is used to trigger a task.

object
unit
required

The unit of the time interval.

string
Allowed values: days weeks months years
Example
weeks
value
required

The value of the time interval.

integer
Example
2
recurring_schedule
required
object
unit
required

The unit of the time interval.

string
Allowed values: days weeks months years
Example
weeks
value
required

The value of the time interval.

integer
Example
2
assignees
required
Array<string>
>= 1 items <= 1 items
references
required
Array<object>

The reference of the task.

object
type
required

The type of the referenced object.

string
Allowed values: asset
Example
asset
uuid
required

The UUID of the referenced object.

string format: uuid
Example
a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
name

Display name of the referenced object.

string
Example
Assset name (asset barcode)
id

The id of the referenced object.

integer
Example
1
status

The status of the referenced object.

string
Allowed values: open done
Example
open
attachments
Array<string>
0
notify
boolean

Success

Location
string

Location of the newly created Task

Location-UUID
uuid

The UUID of the newly created object.

Request body is missing or invalid or request data is invalid.

Access token is missing or invalid.

You are not permitted to perform the requested operation.

Internal Server Error.