Refresh cached system date

post

/rest/updatecachedsystemDate

Refreshes the cached OIPA system date by invoking the existing SOAP-compatible SystemDate business logic, then returns the configured date. companyGuid is optional; omission uses the existing default context. The response date follows Java MEDIUM locale formatting to preserve current SOAP/business behavior (for example, Aug 1, 2015 in an English locale).

Request

Header Parameters
Back to Top

Response

200 Response

Cached system date refreshed and returned.
Headers

400 Response

Request representation is invalid.

401 Response

Authentication failed.

403 Response

Authorization failed for UpdateCachedSystemDate/updateCachedSystemDate.

415 Response

Request media type is not supported.

500 Response

Configured system date is unavailable or the refresh failed.
Back to Top

Examples

This example describes how to refresh the cached system date in JSON and XML formats.

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 username:password \
     "http://server:port/PASJava/rest/updatecachedsystemDate" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body in JSON Format

The following shows an example of the request body in JSON format:

{
  "companyGuid": "*{{companyGuid}}*"
}

Example Response Body in JSON Format

The following shows an example of the response body in JSON format:

{
    "systemDate": "Jul 3, 2020"
}

Example Request Body in XML Format

The following shows an example of the request body in XML format:

<Request>
    <companyGuid>*{{companyGuid}}*</companyGuid>
</Request>

Example Response Body in XML Format

The following shows an example of the response body in XML format:

<Response>
    <systemDate>Jul 3, 2020</systemDate>
</Response>

Back to Top