> ## Documentation Index
> Fetch the complete documentation index at: https://developer.embedly.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Update existing Product

> The endpoint allows you to update an existing product..

## Request Body

<ParamField body="id" type="string" required>
  The unique identifier of the product **Example:**
  'e678b629-fb56-11ef-a8a9-6045bd97b81d'
</ParamField>

<ParamField body="name" type="string" required>
  A name of the resource. **Example:** 'School Loan'
</ParamField>

<ParamField body="description" type="string" required>
  A description of the resource. **Example:** 'Loan'
</ParamField>

<ParamField body="direction" type="string" required>
  The direction of the resource (e.g., 'D' for debit). **Example:** 'D'
</ParamField>

<ParamField body="isActive" type="boolean" required>
  Indicates whether the resource is active. **Example:** true
</ParamField>

## Response

✅ Success Response

```json theme={null}
Status Code: 200 OK

{
  "code": "00",
  "success": true,
  "message": "Updated Successfully",
  "data": {
    "id": "ed639208-0be4-11f0-a8a9-6045bd97b81d",
    "name": "Updated Loan",
    "description": "Updated Loan Description",
    "direction": "D",
    "isActive": true,
    "dateUpdated": "2025-03-28T14:57:11"
  }
}

```

## ❌ Error Responses

Status Code: 400 Bad Request

```json theme={null}
{
  "code": "404",
  "success": false,
  "message": "The product you have specified does not exist",
  "data": null
}
```
