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

# Update Policy

> Update a store policy

This endpoint is part of the merchant API and is authenticated with a
merchant access token (not an app OAuth token). The policy to update is
identified by its `policyId`.

## Path Parameters

<ParamField path="policyId" type="string" required>
  The unique ID of the policy to update
</ParamField>

## Body Parameters

Both fields are optional; send only the ones you want to change.

<ParamField body="policyType" type="string">
  Policy type label (free-form text, e.g. `Refund Policy`,
  `Privacy Policy`, `Terms and Conditions`)
</ParamField>

<ParamField body="policyContent" type="string">
  Policy content (HTML)
</ParamField>

## Response

On success the endpoint returns the standard response envelope with the
updated policy in `data`.

<ResponseExample>
  ```json theme={null}
  {
    "status": 200,
    "state": "success",
    "message": "Policy updated successfully",
    "data": {
      "policyId": "b2f7c1a4-9d3e-4a2b-8f10-6c5e9d7a1b34",
      "policyType": "Refund Policy",
      "policyContent": "<p>Updated refund policy content...</p>",
      "storeId": "f73049dc-b4d4-4f85-99c2-681a5e351a8a",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "updatedAt": "2024-01-25T10:00:00.000Z"
    },
    "count": null,
    "pagination": null
  }
  ```
</ResponseExample>

If no policy matches the given `policyId`, the endpoint returns:

```json theme={null}
{
  "status": 404,
  "state": "info",
  "message": "Policy not found.",
  "data": null
}
```
