Shrink Tables

post

/mobile/system/analyticsDataManagement/shrink

Initiates a job to shrink the ApiCalls, Events, Sessions, and Users tables. Shrink requests are not filtered by startDate, endDate, or mobileBackends. Therefore, it takes an empty body.

Permissions

Only team members with the Administrator role can access the Analytics Data Management API.

Request

Supported Media Types
Body ()
Root Schema : schema
Example Request (application/json)
{
}
Back to Top

Response

Supported Media Types

202 Response

Job initiated successfully.
Body ()
Root Schema : Job
Type: object
Title: Job
Information about a purge job.
Show Source
Nested Schema : Filters
Type: object
Title: Filters
The date range of the data to delete and, optionally, for which backends.
Show Source
Nested Schema : mobileBackends
Type: array
(Optional) Only delete analytic data for these backends.
Show Source
Nested Schema : Backend
Type: object
Title: Backend
Backend identification.
Show Source
Example Response (application/json)
{
    "createdBy":"UserX",
    "links":[
        {
            "rel":"canonical",
            "href":"/mobile/system/analytics/dataManagement/jobs/116"
        },
        {
            "rel":"self",
            "href":"/mobile/system/analytics/dataManagement/jobs/116"
        }
    ],
    "id":null,
    "type":"SHRINK_ALL",
    "createdOn":"2018-09-02T12:34:56.789Z",
    "status":"PENDING"
}

400 Response

Bad request.

Body ()
Root Schema : Error
Type: object
Title: Error
The error JSON object returned by the service.
Show Source
Nested Schema : o:errorDetails
Type: array
Minimum Number of Items: 0
Included when the error is caused by multiple issues.
Show Source
Nested Schema : Error Detail
Type: object
Title: Error Detail
Show Source
Back to Top

Examples

The following example shows how initiate a job to shrink the ApiCalls, Events, Sessions, and Users tables using cURL.

curl -i \
-X POST \ 
-u administrator@example.com:password \
-d '{}' \
-H "Content-Type: application/json; charset=utf-8" \
-H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" \
https://fif.cloud.oracle.com/mobile/system/analyticsDataManagement/shrink

Example of Response Header

The following shows an example of the response header:

200 OK
Content-Type: application/json
Date: Thu, 01 Feb 2018 00:20:26 GMT

Example of Response Body

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

{
    "id": null,
    "status": "PENDING",
    "type": "SHRINK_ALL",
    "createdOn": "2018-02-01T00:20:25.028Z",
    "createdBy": "uimcs",
    "links": [
        {
            "rel": "canonical",
            "href": "/mobile/system/analyticsDataManagement/shrink/"
        },
        {
            "rel": "self",
            "href": "/mobile/system/analyticsDataManagement/shrink/"
        }
    ]
}
Back to Top