Users

/api/users

Get User

get

Get information from a single user.

Path parameters
userAddressstringRequired
Responses
200

OK

get
GET /api/users/{userAddress} HTTP/1.1
Host: api.rair.market
Accept: */*
200

OK

No content

Update User

patch

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

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?