PUT /examiner/restfulsimplifieddeadline/id

Update a Deadline.

The underlying data model where the item is updated is defined in devilry.apps.core.models.Deadline. The Simplified API that the server forwards this request to is devilry.apps.examiner.simplified.SimplifiedDeadline.update().

Request

Example

PUT /examiner/restfulsimplifieddeadline/id

{
    text: "myvalue",
    deadline: "2010-02-22 22:32:10",
    feedbacks_published: true,
    assignment_group: 15
}

Required request parameters encoded in the URL

id

The unique identifier of a Deadline as the last item in the URL. You will typically get this id in response from a search.

Required request parameters

The following request parameters are encoded as a JSON object and sent as the request body as shown in the example above.

text

Actual location of the field:
devilry.apps.core.models.Deadline
About the field:
An optional text to show to students and examiners.
Type
String

deadline

Actual location of the field:
devilry.apps.core.models.Deadline
About the field:
The time of the deadline.
Type
DateTime string (YYYY-MM-DD hh:mm:ss)

feedbacks_published

Actual location of the field:
devilry.apps.core.models.Deadline
About the field:
If this is True, the student can see all StaticFeedbacks associated with this Deadline
Type
Boolean

assignment_group

Actual location of the field:
devilry.apps.core.models.AssignmentGroup
About the field:
Autogenerated identifier.
Type
Integer

Response

On success

Example

200 OK

{
    text: "myvalue",
    deadline: "2010-02-22 22:32:10",
    feedbacks_published: true,
    assignment_group: 15,
    id: 15
}

Success response details

As long as the Deadline is updated without an error, the response is HTTP 201 with the requested data in the body. The result always contains the data you sent in to the update method, however some values may have been changed due to logic performed on the server before saving.

On error

On errors, we respond with one of the HTTP Error status codes.