# Monitor Records Matches Auto Review

## Version 1

<mark style="color:green;">`PUT`</mark>` ``https://okaydbdemo.innov8tif.com/ekyc/api/aml/v3/worklists/{worklistId} /individuals/{monitorRecordId}/matches/auto-review?apiKey={apiKey}`

#### URL Parameters

| Field                                              | Remark                                                                     |
| -------------------------------------------------- | -------------------------------------------------------------------------- |
| worklistId <mark style="color:red;">\*</mark>      | The ID of the worklist where the individual record exists. Mandatory field |
| monitorRecordId <mark style="color:red;">\*</mark> | The ID of the individual monitor record to retrieve                        |
| apiKey <mark style="color:red;">\*</mark>          | apiKey is used for authentication.                                         |

#### Sample Request Body

```json
{
  "autoReviews": [
    {
      "qrCode": "3919221",
      "referenceId": "31",
      "status": "open",
      "clientRiskRating": "High-Risk",
      "clientComment": "Reviewed as true positive, no risk to the business.",
      "clientUserId": "test.abc"
    },
    {
      "qrCode": "854244",
      "clientComment": "Pending review."
    }
  ]
}
```

#### Response Body

| Field       | Remark                                                                                                                                                                                                          |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| status      | Indicate API status. Values can be success, error.                                                                                                                                                              |
| messageCode | <p></p><p>Provide error details if status is error. Values can be: </p><ul><li>INVALID\_API\_KEY – invalid api key.</li><li>MAPI-001– Resource not found (workflowId or monitorRecordId is not found)</li></ul> |
| result      | Detailed results                                                                                                                                                                                                |

#### Sample Response Body

{% tabs %}
{% tab title="Error" %}

```json
{
    "status": "error",
    "messageCode": "MAPI-311",
    "message": "Auto Reviews can only be added to monitor records that have not been screened yet",
    "hasErrors": false,
    "results": null
}
{
  "status": "error",
  "hasErrors": true,
  "results": [
    {
      "statusCode": 200,
      "referenceId": "31"
    },
    {
      "statusCode": 400,
      "error": {
        "code": "MAPI-312",
        "message": "Auto Review for a given match already exists and can not be updated"
      }
    }
  ]
}

```

{% endtab %}
{% endtabs %}
