will not allow too many owners
PUT /api/v1/users/:id/grant_owner_privileges
Parameters
Request
Headers
Route
PUT /api/v1/users/250/grant_owner_privileges
Body
{}
cURL
curl "http://localhost:3000/api/v1/users/250/grant_owner_privileges" -d '{}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: apMpPiVg7vkX3z9sjovzDYWQAKsHhaMMVQ" \
-H "X-Api-Email: user-246@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
422 Unprocessable Entity
Body
{
"errors": {
"base": [
"Your current plan only allows 1 Admin accounts (Owners and Authors)."
]
}
}