Re-submit a request after revision

A verified researcher is able to update his requests as long as it is in the state of revision. Submitting the request for approval will also check the validity of the request revision.

{info} Only a researcher can submit request-revisions for approval


Method Uri Auth Role
PUT /v1/requests/{UUID}/revise Bearer JWT-Token researcher

Headers

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

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

Data constraints (fillable)

{
    "title": "text",
    "coauthors": "array[text]",
    "author": "json,text",
    "has_informed_coauthors": "boolean",
    "has_agreed_terms": "boolean",
    "is_student": "boolean",
    "student_details": "text",
    "hypotheses": "text",
    "background": "text",
    "design": "text",
    "analyses": "text",
    "timeline": "text"
}

Success Responses

Condition : User must be a researcher.

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": "awaiting_approval",
  "request": {
    "id": "50b17bb5-9270-4bfd-8f44-8206960c1bcb",
    ...

Error Responses

Condition : If the current user does not have the role researcher attached.

Code : 403 Unauthorized

{
  "message": "User does not have the right roles."
}

Condition : If the current request is already submitted for revision.

Code : 403 Unauthorized

{
  "message": "The request cannot be submitted int the current state: awaiting_approval"
}