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

# Update an RMA custom field

`PUT /rma/custom-fields/{id}`

## Request

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

Partial update. Sending `options` replaces the full option set. Permission: sales.rma.custom-fields.edit.

## Path parameters

- `id` string, required

## Request body

- object
  - `label` string
  - `is_required` 0 | 1
  - `position` integer
  - `status` 0 | 1
  - `options` object[]
    - `name` string
    - `value` string

## Response `200`

The updated RMA custom field.

## 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)
