# Configure Reconciliation on existing Integration

## Description

* To set reconcile rule on the existing mapping and configure reconciliation, use this sample script.

## Input

* Instance details:
  * Instance details like <code class="expression">space.vars.SITENAME</code> instance URL, username and password are to be given in **instanceDetails.properties** file available within script.
* Integration details (to be given at the time of script execution):
  * Integration Group id on which Reconciliation is to be configured.
  * Select directional integration id.
* Mapping details (to be given at the time of script execution):
  * Select the mapped fields on which Reconcile Rule is to be configured
  * Select **Mismatch**, and **Reconcile For** options for each field.
* Reconciliation details (to be given at the time of script execution):
  * Workflow id (should be a type of Reconciliation)
  * Select the reconciliation status

## Output

* Configured Reconciliation for given fields in an Integration.

## Script

You can download the script from [here](https://opshub.com/ohftp/AdminAPI/configureReconciliationOnExistingIntegration.zip).

Below is an example of execution of script which shows the input and output:

<div align="center"><img src="https://3739347370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1a8GpUm2lq3lKbytaYjt%2Fuploads%2Fgit-blob-558dcc7f22cca4936325354dbb932de32444be05%2FAdmin-API-Rest-6a.png?alt=media" alt=""></div>

<div align="center"><img src="https://3739347370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1a8GpUm2lq3lKbytaYjt%2Fuploads%2Fgit-blob-77a0749e535a12d47517f94a0b7d8e8487b33307%2FAdmin-API-Rest-6b.png?alt=media" alt=""></div>
