modl.gg

Update Staff Role

Change a staff member's role.

PATCH /v1/minecraft/staff/{id}/role

Change the role assigned to a staff member. The new role must be a valid role that exists in the server's role configuration.

Authentication

Requires the X-API-Key header with your server's API key.

X-API-Key: your-api-key-here

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.
Content-TypestringYesMust be application/json.

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the staff member.

Body

FieldTypeRequiredDescription
rolestringYesThe name of the new role to assign to the staff member.
{
  "role": "Admin"
}

Response

200 OK

{
  "success": true,
  "message": "Staff role updated successfully."
}

Error Responses

Status CodeDescription
400Invalid role name. The specified role does not exist.
401Missing or invalid API key.
404Staff member not found.
429Rate limit exceeded.
500Internal server error.

On this page