PUT /examiner/restfulsimplifieddelivery/id

Update a Delivery.

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

Request

Example

PUT /examiner/restfulsimplifieddelivery/id

{
    successful: true,
    delivery_type: 20,
    deadline: 15,
    alias_delivery: 15
}

Required request parameters encoded in the URL

id

The unique identifier of a Delivery 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.

successful

Actual location of the field:
devilry.apps.core.models.Delivery
About the field:
Has the delivery and all its files been uploaded successfully?
Type
Boolean

delivery_type

Actual location of the field:
devilry.apps.core.models.Delivery
About the field:
0: Electronic delivery, 1: Non-electronic delivery, 2: Alias delivery. Default: 0.
Type
Integer

deadline

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

alias_delivery

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

Response

On success

Example

200 OK

{
    successful: true,
    delivery_type: 20,
    deadline: 15,
    alias_delivery: 15,
    id: 15
}

Success response details

As long as the Delivery 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.