{
    "swagger":"2.0",
    "info":{
        "description":"The Oracle Insurance Policy Administration REST API enables you to perform Create and search operations on the OIPA Entities through Cycle.",
        "version":"2026.05.26",
        "title":"REST API for Oracle Insurance Policy Administration - Cycle",
        "termsOfService":"https://www.oracle.com/legal/terms.html",
        "contact":{
            "url":"https://support.oracle.com"
        },
        "x-summary":"The Oracle Insurance Policy Administration REST API enables you to perform Create and search operations on the OIPA Entities through Cycle."
    },
    "basePath":"/CycleService/rest/services",
    "tags":[
        {
            "name":"tasks"
        }
    ],
    "paths":{
        "/tasks":{
            "post":{
                "tags":[
                    "tasks"
                ],
                "summary":"Submit the task to Cycle for batch processing",
                "description":"The CycleService REST API can be used to submit a task of activity processing from the OIPA user interface or any third-party system to Cycle Agent.",
                "operationId":"tasks",
                "consumes":[
                    "application/json"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "in":"header",
                        "name":"ClientNumber",
                        "description":"For basic Authentication, the ClientNumber Username is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    },
                    {
                        "in":"header",
                        "name":"PersonalId",
                        "description":"For basic Authentication, the PersonalId Password is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    },
                    {
                        "in":"body",
                        "name":"body",
                        "description":"Cycle task submit request.",
                        "required":false,
                        "schema":{
                            "$ref":"#/definitions/SubmitTaskRequest"
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Task submitted successfully. Response contains CycleGUID and interrupt key."
                    },
                    "400":{
                        "description":"Invalid request or invalid GUID format."
                    },
                    "401":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    },
                    "403":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    },
                    "500":{
                        "description":"Internal server error while submitting the task."
                    }
                },
                "x-internal-id":"tasks-post",
                "x-filename-id":"tasks-post"
            },
            "get":{
                "tags":[
                    "tasks"
                ],
                "summary":"Get latest Cycle execution status",
                "description":"Retrieves execution/status details for the most recently submitted Cycle task.",
                "operationId":"getRecentCycleDetails",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "in":"header",
                        "name":"ClientNumber",
                        "description":"For basic Authentication, the ClientNumber Username is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    },
                    {
                        "in":"header",
                        "name":"PersonalId",
                        "description":"For basic Authentication, the PersonalId Password is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Cycle execution details retrieved successfully.",
                        "schema":{
                            "$ref":"#/definitions/CycleTaskDetail"
                        }
                    },
                    "400":{
                        "description":"Cycle execution task not found or details could not be retrieved."
                    },
                    "401":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    },
                    "403":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    }
                },
                "x-internal-id":"tasks-get",
                "x-filename-id":"tasks-get"
            }
        },
        "/tasks/{CycleGuid}":{
            "get":{
                "tags":[
                    "tasks"
                ],
                "summary":"Get Cycle execution status by CycleGUID",
                "description":"Retrieves execution/status details for a previously submitted Cycle task using the provided CycleGUID.",
                "operationId":"getCycleDetailsByCycleGuid",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "in":"header",
                        "name":"ClientNumber",
                        "description":"For basic Authentication, the ClientNumber Username is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    },
                    {
                        "in":"header",
                        "name":"PersonalId",
                        "description":"For basic Authentication, the PersonalId Password is sent in the HTTPS header request.",
                        "type":"string",
                        "required":true
                    },
                    {
                        "in":"path",
                        "name":"CycleGuid",
                        "description":"Cycle GUID identifying the submitted Cycle task.",
                        "type":"string",
                        "required":true
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Cycle execution details retrieved successfully.",
                        "schema":{
                            "$ref":"#/definitions/CycleTaskDetail"
                        }
                    },
                    "400":{
                        "description":"Invalid CycleGUID format or Cycle execution task not found."
                    },
                    "401":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    },
                    "403":{
                        "description":"Authentication refused for provided credentials or the token is invalid."
                    }
                },
                "x-internal-id":"tasks-{CycleGuid}-get",
                "x-filename-id":"tasks-cycleguid-get"
            }
        }
    },
    "definitions":{
        "SubmitTaskRequest":{
            "type":"object",
            "properties":{
                "cycleLevel":{
                    "type":"string",
                    "example":"03"
                },
                "cycleAction":{
                    "type":"string",
                    "example":"P"
                },
                "cycleId":{
                    "type":"string",
                    "example":"D657D934-B8EB-4ADD-A27E-1812FA5CEFCD"
                },
                "activityId":{
                    "type":"string",
                    "example":"C61EC1A9-1522-465F-A2A5-8A9C0DD989CE"
                },
                "companyId":{
                    "type":"string",
                    "example":"05711222-7DB3-4EBD-A821-57A30A699B88"
                },
                "processAll":{
                    "type":"boolean",
                    "example":false
                }
            }
        },
        "CycleTaskDetail":{
            "type":"object",
            "properties":{
                "cycleGuid":{
                    "type":"string"
                },
                "level":{
                    "type":"string",
                    "example":"POLICY"
                },
                "status":{
                    "type":"object",
                    "additionalProperties":{
                        "type":"string"
                    },
                    "example":{
                        "SUCCESS":"10",
                        "BUSINESS ERROR":"2",
                        "SYSTEM ERROR":"1"
                    }
                },
                "processedEntities":{
                    "type":"string"
                },
                "processedActivities":{
                    "type":"string"
                },
                "processedEntitiesPerMinute":{
                    "type":"string"
                },
                "processedActivitiesPerMinute":{
                    "type":"string"
                }
            }
        }
    },
    "externalDocs":{
        "description":"Find out more about PAS REST end points",
        "url":"http://www.oracle.com"
    }
}