Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.53 KB

endpoint_requests_statuschange_unsubmitted_submitted.md

File metadata and controls

58 lines (46 loc) · 1.53 KB

POST Requests Status Change (Unsubmitted to Submitted)

/requests/statuschanges

This example of this endpoint demonstrates how to change the status of a Request from Unsubmitted to Submitted. This endpoint example is equivalent to submitting a Request within the browser-based application.

Request Header

Name Value Description
arena_session_id unique ID for session obtained from login
content-type application/json

Response Codes

Code Description
201 Success
400 Failure

Response Header

Name Value Description
Content-Length number number of characters in response
Content-Type application/json content type of response
Date date today's date and time
Server ArenaSolutions
X-Arena-Next-Request-Limit-Reset date the scheduled time for resetting of the count
X-Arena-Requests-Remaining number how many calls left

Sample Requests and Responses

Upgrade the status of a Request from UNSUBMITTED to SUBMITTED.

POST /requests/statuschanges

Request

{
    "request": {
        "guid": "K2M5O1MD03ML4NJ32ZN1"
    },
    "comment":"Let's move this Request from Unsubmitted to Submitted",
    "status": "SUBMITTED"
}

Response

{
    "comment": "Let's move this Request from Unsubmitted to Submitted",
    "request": {
        "guid": "K2M5O1MD03ML4NJ32ZN1",
        "number": "ECR-000009"
    },
    "status": "SUBMITTED"
}