user
Assign user to another role
put/users/{userId}/role/{roleId}
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
userIdstring required
roleIdinteger required
Response
Role updated successfully
Example response
{
"status": "success",
"message": "Role updated successfully",
"status_code": 200
}Changes
No recorded changes to this operation across all 15 revisions of this API.