Create Case
post
/PASService/rest/services/v1/cases
Creates single or multiple cases.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
201 Response
This response code indicates that the operation of creating a case has completed successfully.
Examples
This example describes how to create single or multiple cases
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/v1/cases"
-d '{"Use this placeholder to plug-in the example request body given below"}' Example Request Body
The following shows an example of the request body in JSON format:
{
"cases": [
{
"caseName": "test",
"caseNumber": "CaseA",
"creationDate": "2019-03-20T00:00:00Z",
"policies": [{
"policyNumber": "FPPPolicy_4057",
"issueStateCode": "PA",
"status": "02",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
"planId": "C5EE0DA4-3003-42C1-9468-D91DA546B79F",
"updatedDate": "2019-03-20T09:36:42Z",
"systemCode": "01"
}],
"caseId": "5203C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"status": "02",
"updatedDateTime": "2019-03-20T09:36:42Z"
}
]
}
Example Response Body
The following shows an example of the response body in JSON format:
{
"cases": [
"5203C2FE-13B1-4A48-8CDA-DE8386C60EF9"
]
}