sets primary_owner if current_user is primary owner
PUT /api/v1/users/:id/set_primary_owner
Parameters
| Name |
Description |
|
id
|
id
|
|
id
|
id
|
Request
Headers
Route
PUT /api/v1/users/1424/set_primary_owner
Body
{}
cURL
curl "http://localhost:3000/api/v1/users/1424/set_primary_owner" -d '{}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: nrt6nFEQe1pG9aB3UEz8UqYCxaiqqQswEQ" \
-H "X-Api-Email: user-319@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content
Request
Headers
Route
PUT /api/v1/users/1424/set_primary_owner
Body
{}
cURL
curl "http://localhost:3000/api/v1/users/1424/set_primary_owner" -d '{}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: nrt6nFEQe1pG9aB3UEz8UqYCxaiqqQswEQ" \
-H "X-Api-Email: user-319@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content