---
title: "Update an RMA rule"
method: PUT
path: "/rma/rules/{id}"
tags: ["Admin Sales: RMA"]
---

# Update an RMA rule

`PUT /rma/rules/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/rma/rules/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/rma/rules/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Partial update. Permission: sales.rma.rules.edit.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `status` 0 | 1
  - `return_period` integer

## Response `200`

The updated RMA rule.

## Other responses

- `400`: Invalid input
- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
