---
title: "Mass-update RMA rule status"
method: POST
path: "/rma/rules/mass-update-status"
tags: ["Admin Sales: RMA"]
---

# Mass-update RMA rule status

`POST /rma/rules/mass-update-status`

## Request

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

Permission: sales.rma.rules.edit.

## Request body

- object
  - `indices` integer[], required
  - `value` 0 | 1, required

## Response `200`

The updated rule ids.

## Other responses

- `201`: AdminRmaRuleMassUpdateStatus resource created
- `400`: Invalid input
- `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)
