Skip to main content

PUT /assignments/{assignmentId}

PRO

The functionality is available in PRO Edition only

Description

Updates data on a resource assignment

The route handles the HTTP PUT request made to the /assignments/{assignmentId} path.

Parameters

  • assignmentId (number) - (required) the id of an assignment to be updated

Payload

The server needs to receive a JSON object with all fields for an assignment (both old and new/modified data).

Example:

{
"id": 1,
"task": 10,
"resource": 101,
"units": 50
}

Response

A JSON object with the assignment id is returned.

Example:

{
"id": 1
}

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


Related article: Working with server