Skip to main content

GET /assignments

PRO

The functionality is available in PRO Edition only

Description

Gets data on resource assignments

The route handles the HTTP GET request made to the /assignments path. It returns the full set of assignments and is used on initial load. For subtree (lazy) loading, see GET /assignments/{taskId}.

Payload

No payload is required.

Response

The server returns a JSON array with data on resource assignments. See parameters description here: assignments.

Example:

[
{
"id": 1,
"task": 10,
"resource": 101,
"units": 100
},
{
"id": 2,
"task": 10,
"resource": 102,
"units": 50
}
]

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


Related article: Working with server