blocks non-primary owner from revoking ownership
PUT /api/v1/users/:id/revoke_owner_privileges
Parameters
Request
Headers
Route
PUT /api/v1/users/241/revoke_owner_privileges
Body
{}
cURL
curl "http://localhost:3000/api/v1/users/241/revoke_owner_privileges" -d '{}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: gK4tN3iMZ3daN1x7mG-VyCqhxAytRBL1bQ" \
-H "X-Api-Email: user-238@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
{
"success": false,
"error": "Unauthorized",
"status": 401,
"message": "You can't do that!"
}