Owner Privileges API

blocks non-primary owner from revoking ownership

PUT /api/v1/users/:id/revoke_owner_privileges

Parameters

Name Description
id id

Request

Headers

Accept: application/json
X-Api-Token: gK4tN3iMZ3daN1x7mG-VyCqhxAytRBL1bQ
X-Api-Email: user-238@example.com

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

Content-Type: application/json; charset=utf-8
Content-Length: 84

Status

401 Unauthorized

Body

{
  "success": false,
  "error": "Unauthorized",
  "status": 401,
  "message": "You can't do that!"
}