> For the complete documentation index, see [llms.txt](https://rimplenet.gitbook.io/rimplenet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rimplenet.gitbook.io/rimplenet/api-reference/credit/update-credits.md).

# Update Credits

Update a specified credit

{% hint style="info" %}
**Must have the authorization to use this API**
{% endhint %}

<mark style="color:orange;">`PUT`</mark> `https://example.com/wp-json/rimplenet/v1 /credits`

#### Request Body

| Name       | Type   | Description                                              |
| ---------- | ------ | -------------------------------------------------------- |
| note       | String | Enter a note for this update                             |
| credit\_id | int    | Provide the unique id generated after credit was created |

{% tabs %}
{% tab title="200: OK Note updated" %}

```php
{
    "status_code": 200,
    "status": true,
    "message": "Note updated",
    "data": {
        "note": "Making an update Updated"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Invalid input" %}

```php
{
    "status_code": 400,
    "status": false,
    "message": "invalid input",
    "error": {
        "note": "Field Cannot be empty"
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To view request params, click on the arrow (>) at the right hand side of the endpoint url to expand or collapse
{% endhint %}

**Sample Response**

{% tabs %}
{% tab title="200 OK" %}

```php
{
    "status_code": 200,
    "status": true,
    "message": "Note updated",
    "data": {
        "note": "Making an update Updated"
    }
}
```

{% endtab %}

{% tab title="400 Bad request" %}

```php
{
    "status_code": 400,
    "status": false,
    "message": "invalid input",
    "error": {
        "note": "Field Cannot be empty"
    }
}
```

{% endtab %}
{% endtabs %}
