Patch API v1 user
Changed onpatch/api/v1/user
Request
- The document declares no server URL.
- Auth: HTTP bearer
Request body
Example request
{
"$schema": "https://example.com/schemas/UpdateUserBody.json",
"bio": "My name is Suli and I'm a pro athlete",
"division": 1,
"email": "suli123@email.com",
"expected_grad_year": 2027,
"first_name": "Suli",
"last_name": "Suli",
"sport": "[\"hockey\",\"soccer\"]",
"username": "suliproathlete",
"verified_athlete_status": "pending"
}Response
OK
Example response
{
"$schema": "https://example.com/schemas/GetUserResponse.json",
"bio": "My name is Suli and I'm a pro athlete",
"college": {
"academic_rank": 53,
"city": "Boston",
"division_rank": 1,
"name": "Northeastern University",
"state": "Massachusetts",
"website": "https://www.northeastern.edu"
},
"division": 1,
"email": "suli123@email.com",
"expected_grad_year": 2027,
"first_name": "Suli",
"id": "1",
"last_name": "Suli",
"roles": [
{
"$schema": "https://example.com/schemas/RoleResponse.json",
"id": "1",
"name": "admin",
"permissions": [
{
"$schema": "https://example.com/schemas/PermissionResponse.json",
"action": "create",
"id": "1",
"resource": "user"
}
]
}
],
"sport": {
"name": "Women's Soccer",
"popularity": 20000
},
"username": "suliproathlete",
"verified_athlete_status": "pending"
}Changes
- ○
added the new optional request property
- ○
- ▲
removed the required property
from the response with the status - ●
removed the request property
- ▲