Collection Providers
Add a Moderator to a Collection Provider
Add a new moderator to the specified collection provider.
Permissions
- The authenticated user must be an administrator of the collection 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.
post/providers/collections/{provider_id}/moderators/
Path parameters
provider_idstring required
The unique identifier of the collection provider.
Request body
Example request
{
"data": {
"type": "moderators",
"attributes": {
"permission_group": "moderator"
},
"relationships": {
"user": {
"data": {
"type": "users",
"id": "user_123"
}
}
}
}
}Response
Moderator successfully added.