# Update User Complaint
source: https://developer.mastercard.com/india-online-dispute-resolution/documentation/testing/test-case/update_complaint/index.md

## Update User Complaint {#update-user-complaint}

### Prerequisite {#prerequisite}

Refer to the [Update User Complaint](https://developer.mastercard.com/india-online-dispute-resolution/documentation/use-cases/update_dispute/index.md) use case details.

API Reference: `PUT /complaints`

### Test Cases {#test-cases}

#### Request {#request}

    1.
    {
        "comments": "Updating complaint status",
        "trackingNumber": "S4ZY5NBQQIX6",
        "complaintStatus":"UNDER_INVESTIGATION"
         }
    2.
    {
        "comments": "Updating the complaint status",
        "trackingNumber": "S4ZY5NBQQIX6"
    }

#### Response \[Test Case Success\] {#response-test-case-success}

    {
        "trackingNumber": "S4ZY5NBQQIX6",
        "description": "Your complaint has been updated successfully."
    }

#### Response \[Test Case Failure\] {#response-test-case-failure}

    1.
    {
        "Errors": {
            "Error": [
                {
                    "Source": "INDIA_ONLINE_DISPUTE_RESOLUTION",
                    "ReasonCode": "Request-Id",
                    "Description": "Invalid input field Request-Id provided in request.",
                    "Recoverable": true
                }
            ]
        }
    }

    2. 
    {
        "errors": {
            "error": [
                {
                    "source": "INDIA_ONLINE_DISPUTE_RESOLUTION",
                    "reasonCode": "ODR017",
                    "description": "The client is not onboarded. Please create a project on the Mastercard developer portal to successfully onboard yourself.",
                    "recoverable": true,
                    "details": null
                }
            ]
        }
    }

    3.
    {
        "Errors": {
            "Error": [
                {
                    "Source": "INDIA_ONLINE_DISPUTE_RESOLUTION",
                    "ReasonCode": "complaintStatus",
                    "Description": "Complaint status is <Resolved/Rejected>. Hence comment can not be added.",
                    "Recoverable": true
                }
            ]
        }
    }

