Skip to main content

POST /assignments

PRO

The functionality is available in PRO Edition only

Description

Creates a new resource assignment

The route handles the HTTP POST request made to the /assignments path.

Payload

The server needs to receive a JSON object with data for the new assignment. See parameters description here: assignments.

{
"id": "temp://1710929724740",
"task": 10,
"resource": 101,
"units": 100
}

Response

The server returns a JSON object with the new assignment ID.

Example:

{
"id": 13
}

The HTTP status code shows whether the request succeeds (status 200) or fails (status 500).


Related article: Working with server