Create Case
post
/PASService/rest/services/cases
Creates single or multiple cases
Request
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
Default Response
successful operation
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" -u username:password "server:port/PASService/rest/services/cases"
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": [], "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": [ "EA8B3C28-6950-407A-84DB-211AA99B0A2C" ] }"