v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
Collection Providers

Update a Moderator's Permission Group for a Collection Provider

Update the permission group for a specific moderator on a collection provider.

Permissions - The authenticated user must be an administrator of the collection 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 collection 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.
patch/providers/collections/{provider_id}/moderators/{moderator_id}/

Path parameters

provider_idstring required

The unique identifier of the collection provider.

moderator_idstring required

The unique identifier of the moderator.

Request body

Example request

{
  "data": {
    "type": "moderators",
    "id": "{moderator_id}",
    "attributes": {
      "permission_group": "admin"
    }
  }
}

Response

Moderator successfully updated.