Deletes an admin from a gym by their ID.
Permission | Description |
---|---|
gym_admins.delete | Delete admins from your own gyms |
gym_admins.delete_any | Delete admins from any gym (admin only) |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
admin-id | int | Yes | ID of the admin to delete | 5 |
Admin was successfully deleted. No response body is returned.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |