Users
/api/users
Update user information. Only for the user's own information or for anyone if current user is admin.
Path parameters
userAddressstringRequired
Body
nickNamestringRequired
avatarstringRequired
backgroundstringRequired
emailstringRequired
firstNamestringRequired
lastNamestringRequired
ageVerifiedstringRequired
blockedstringRequired
Responses
200
OK
400
Data sent matches with the database info
404
User not found/ User is not the same as public address
patch
PATCH /api/users/{userAddress} HTTP/1.1
Host: api.rair.market
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"nickName": "text",
"avatar": "text",
"background": "text",
"email": "text",
"firstName": "text",
"lastName": "text",
"ageVerified": "text",
"blocked": "text"
}
No content
Was this helpful?