Reading and Deleting History of a Configuration

Reading History of a Configuration

SSC offers an endpoint GET /api/v1/configurations/{configurationId}/history to read the history of a configuration.

The request is as follows:

GET /api/v1/configurations/7DF351B91C774E648D865EA1F125F591/history 
If-Match: W/"2023-05-11 09:53:16.745"
Authorization: Bearer eyJh..
Cache-Control: no-cache
Host: ssc-engine.c-9d83..
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: lbhash="62b374474e0ede2c"
Content-Length: 0

The response is as follows:

HTTP/1.1 200 OK
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-length: 0
content-security-policy: default-src 'self'
correlation_id: 748d48a6-31e0-4da1-88e6-2c05290b2812
date: Thu, 11 May 2023 10:14:47 GMT
etag: W/"2023-05-11 09:53:16.745"
expires: 0

{"undoRequestId":"5653F80E7C824D55BD6CF03542D78817","history":[{"itemId":"1-SME_OFFICE$1","csticId":"SME_NO_WORKPLACES_NF","actionType":"SET","value":"1","requestId":"3FD158BAAB4C4AD5BBF7E7EFB8CE13C1"},{"itemId":"1-SME_OFFICE$1","csticId":"SME_CREATE_NP_INST","actionType":"SET","value":"SME_NP_INST_1","requestId":"5653F80E7C824D55BD6CF03542D78817"},{"itemId":"1-SME_OFFICE$1","csticId":"SME_CREATE_NP_INST","actionType":"SET","value":"SME_NP_INST_1","requestId":"5653F80E7C824D55BD6CF03542D78817"}]}

Deleting History of a Configuration

SSC offers an endpoint DELETE /api/v1/configurations/{configurationId}/history to delete the history of a configuration. On successful deletion, the service returns 204.

Delete last record from history for the configuration

The endpoint DELETE /api/v1/configurations/{configurationId}/history/actions/{actionId} deletes the last record from history of configuration.

The request is as follows:

GET /api/v1/configurations/7DF351B91C774E648D865EA1F125F591/history/actions/5653F80E7C824D55BD6CF03542D78817 
If-Match: W/"2023-05-11 09:53:16.745"
Authorization: Bearer eyJh..
Cache-Control: no-cache
Host: ssc-engine.c-9d83..
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: lbhash="62b374474e0ede2c"
Content-Length: 0

The response will be status 204.