# Product Update

## Body

<table><thead><tr><th>Name</th><th width="239">Type</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;"><strong><code>id</code></strong></mark></td><td>integer</td><td>Product ID</td></tr><tr><td><code>name</code></td><td>string</td><td>Product Name</td></tr><tr><td><code>description</code></td><td>string</td><td>Product Description</td></tr><tr><td><code>amount</code></td><td>decimal</td><td>Product Amount</td></tr><tr><td><code>status</code></td><td>string | ACTIVE | DISABLED</td><td>Product Status</td></tr><tr><td><code>period_type</code></td><td>string | FIXED | RECURRING</td><td>Period Type</td></tr></tbody></table>

## Response

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

```json
{
    "messages": "Product saved",
    "data": true
}
```

{% endtab %}

{% tab title="404" %}
Product Not Found

```json
{
    "status": 404,
    "error": 404,
    "messages": {
        "error": "AP-1 Product not found"
    }
}
```

{% endtab %}

{% tab title="409" %}
Product Already Exists

```json
{
    "status": 409,
    "error": 409,
    "messages": {
        "error": "AP-2 Product already exists"
    }
}
```

{% endtab %}
{% endtabs %}
