---
title: "Update a Moderator's Permission Group for a Preprint Provider"
method: PATCH
path: "/providers/preprints/{provider_id}/moderators/{moderator_id}/"
tags: ["Preprint Providers"]
---

# Update a Moderator's Permission Group for a Preprint Provider

`PATCH /providers/preprints/{provider_id}/moderators/{moderator_id}/`

Update the permission group for a specific moderator on a preprint provider.
## Permissions - The authenticated user must be an administrator of the preprint provider.
## Request Body
Provide the `permission_group` attribute in the `attributes` object to update the moderator. Available values for `permission_group` are:
  - `moderator`: Can review and moderate preprint submissions.
  - `admin`: Can manage submissions and other moderators.

## Returns
 - A JSON object with the updated moderator details under the `data` key if the update is successful.
 - If unsuccessful, returns an `errors` object detailing the validation issues.

## Path parameters

- `provider_id` string, required
- `moderator_id` string, required

## Request body

- object
  - `data` object
    - `type` 'moderators', required — Must be `moderators`.
    - `id` string, required — The unique identifier of the moderator.
    - `attributes` object, required
      - `permission_group` 'moderator' | 'admin', required — The permission group for the moderator: - `moderator`: Can review and moderate preprint submissions. - `admin`: Can manage submissions and other moderators.

## Response `200`

Moderator successfully updated.

## Other responses

- `400` — Bad Request. Invalid input provided.
- `401` — Unauthorized. Authentication is required.
- `403` — Forbidden. You do not have permission to update this moderator.
- `404` — Not Found. No moderator matches the given ID.

---

[API](https://skmtc.dev/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.dev/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/revisions/3c5164c707eb/schema)
