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

# Update Shipping Region

Modifies price or toggles active status for an existing shipping region delivery rate.

### Authorizations

<ParamField header="X-Shop-API-Key" type="string" required>
  Your Secret API Key (`sk_live_...` or `sk_test_...`) generated from the Developer dashboard. Must be kept secret.
</ParamField>

### Path Parameters

<ParamField path="shopId" type="string" required>
  The unique UUID of the shop.
</ParamField>

<ParamField path="id" type="number" required>
  The unique ID of the shipping region rate.
</ParamField>

### Request Body (JSON)

<ParamField body="price" type="number">
  Updated delivery fee in Kobo.
</ParamField>

<ParamField body="isActive" type="boolean">
  Toggles rate active status.
</ParamField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": "success",
    "message": "Shipping region updated successfully",
    "data": {
      "id": 13,
      "shippingFeeKobo": 280000,
      "isActive": true
    }
  }
  ```

  ```json 400 Bad Request theme={null}
  {
    "message": "FORM_VALIDATION_ERROR",
    "code": 400,
    "validationErrors": [
      {
        "path": [
          "id"
        ],
        "message": "Shipping region not found or does not belong to this shop"
      }
    ]
  }
  ```
</ResponseExample>
