GET method for the case page resource
The GET method for the case page resource
returns the page ID of the Case Details page,
the Add Case page, or the Split Case page
for a specific case type.
URI
/CASEREST/v1/casetype/{case type name}/page
The URI for the GET method
includes the following path element:
| Name | Type | Description |
|---|---|---|
| {case type name} | String | The symbolic name of the case type. |
The URI for the GET method includes
the following parameters:
| Name | Type | Required? | Description |
|---|---|---|---|
| TargetObjectStore | String | Yes | The symbolic name of the object store that contains the case type. |
| PageType | String | Yes | One of the following values that indicates the
page for which the ID is to be returned:
|
| Role | String | No | The name of the role for which the Case
Details page ID is to be returned. Specify this parameter when the PageType parameter is set to CasePage to return the ID of the Case Details page that is used for a specific role. This parameter is not valid if the PageType parameter is set to CaseCreationPage or CaseSplitPage. |
Request content
The request for this method contains no JSON content.
Response content
The method returns the page ID of the specified page type for the case type.
The GET method
also returns one of the following response codes:
| Code | Description |
|---|---|
| 200 OK | The method completed successfully and returned the requested page ID. |
| 400 Bad Request | The required TargetObjectStore parameter or PageType parameter was not specified, or a parameter value was invalid. |
| 404 Not Found | The case folder that was specified in the request URI was not found. |
| 500 Internal Server Error | A server error occurred. For information about the error, see the userMessage element in the JSON response. |
Example: GET method request
This
sample code requests the page ID for the Case Details page
that is defined for the caseWorker role in the AUTO_CollisionClaim
case type:
GET http://example.com:9080/CaseManager/CASEREST/v1/casetype
/AUTO_CollisionClaim/page?TargetObjectStore=MyTOS
&PageType=CasePage&Role=caseWorker HTTP/1.1
Host: www.example.netExample: GET method response
This
sample code shows the page ID for the Case Details page
that is defined for the caseWorker role in the AUTO_CollisionClaim
case type:
HTTP/1.1 200 OK
Content-Type: application/json;charset-UTF-8
{
"PhysicalPageId": "e134f49999c112399a"
}
This topic is shared by BAW, CP4BA. Last updated on 2025-03-13 12:15