Mark as delivered

A verified approver is able to mark the request as delivered as long as the request is in the approved state.

{info} Delivering a request will email the belonging researcher.


Method Uri Auth Role
PUT /v1/requests/{UUID}/deliver Bearer JWT-Token approver

Headers

The API requires a header Accept to be submitted with the request:

{
    "Accept": "application/json",
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..." 
}

Success Responses

Condition : User must be an approver.

Code : 200 Okay

Content example : Response will reflect back the created request. The request is the active request which is the latest created revision of the request.

{
  "id": "01e1d8ae-6826-4d63-abd8-4b965177f7c4",
  "status": "delivered",
  "request": {
    "id": "50b17bb5-9270-4bfd-8f44-8206960c1bcb",
    "title": "Hello Sunshine Exposure generation",
    "author": {
      "firstName": "Jeroen",
      "lastName": "Boumans",
   ...
}

Error Responses

Condition : If the current user does not have the role approver attached and/or the request is not in approved state.

Code : 403 Unauthorized

{
  "message": "The request cannot be classified at the current status (delivered) or current user. Only approved requests van be set to \"delivered\""
}