# Individual Monitor Records Matches Review

## Version 1

<mark style="color:green;">`PUT`</mark>` ``https://okaydbdemo.innov8tif.com/ekyc/api/aml/v3/worklists/{worklistId} /individuals/{monitorRecordId}/matches?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
{
  "reviews": [
    {
      "qrCode": "3919221",
      "referenceId": "31",
      "status": "open",
      "clientRiskRating": "High-Risk",
      "clientComment": "Reviewed as true positive, no risk to the business.",
      "clientUserId": "benjamin.zwahlen"
    },
    {
      "qrCode": "43562",
      "referenceId": "39f0j093dnj",
      "status": "false-positive",
      "matchVersion": 4
    },
    {
      "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="Success" %}

```json
{
    "status": "error",
    "messageCode": null,
    "message": null,
    "hasErrors": true,
    "results": [
        {
            "statusCode": 200,
            "referenceId": "31",
            "error": null
        },
        {
            "statusCode": 404,
            "referenceId": "39f0j093dnj",
            "error": {
                "status": 0,
                "code": "MAPI-001",
                "message": "Resource not found",
                "errorDetails": null
            }
        },
        {
            "statusCode": 404,
            "referenceId": null,
            "error": {
                "status": 0,
                "code": "MAPI-001",
                "message": "Resource not found",
                "errorDetails": null
            }
        }
    ]
}
```

{% endtab %}
{% endtabs %}
