---
title: "Add a Moderator to a Preprint Provider"
method: POST
path: "/providers/preprints/{provider_id}/moderators/"
tags: ["Preprint Providers"]
---

# Add a Moderator to a Preprint Provider

`POST /providers/preprints/{provider_id}/moderators/`

Add a new moderator to the specified preprint provider.
## Permissions
 - The authenticated user must be an administrator of the preprint provider.

## Request Body Provide the `permission_group` and the `user_id` for the moderator in the `relationships` object.
#### Returns
 - A JSON object with the newly created moderator details under the `data` key if successful.
 - If unsuccessful, returns an `errors` object detailing the validation issues.

## Path parameters

- `provider_id` string, required

## Request body

- object
  - `data` object
    - `type` 'moderators', required — Must be `moderators`.
    - `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.
    - `relationships` object, required
      - `user` object, required
        - `data` object, required
          - `type` 'users', required
          - `id` string, required — The user ID of the person you wish to add as a moderator.

## Response `201`

Moderator successfully added.

## Other responses

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

---

[API](https://skmtc.net/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.net/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/versions/ca701048eb0d/schema)
