Skip to content

Update User API

Christopher Posada edited this page May 9, 2019 · 1 revision

Update

Endpoint

PUT /api/users/{id}

Payload

{
    "firstName": "Bleh",
    "lastName": "Blah",
    "roleId": 5,
    "locationId": 1,
    "userInterests":[{"id":3}],
    "imageUrl": "/api/images/4/18/19/d509ff89-7c2e-49d0-97b5-4c15445affee.jpg"
}

Response

200 OK

Notes

Updates can only be made by the user (ie: the userId must match the logged in userId)
Roles
Locations

Clone this wiki locally