Updates a user
Path parameters
Request body
Example request
{
"rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"username": "darth"
}Response
Updated user
Example response
{
"_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
"identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"username": "darth",
"accounts": [
{
"_id": "63b428f7d9ca4f6ff5370d05",
"user": {
"_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
"identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
"username": "darth"
},
"accountId": "098098098098098",
"name": "darth#6755",
"avatarId": "098098098087097",
"platform": "DISCORD"
}
]
}Changes
Changed in 16 of the 50 revisions of this API.20831
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 56 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
accounts/items/nameresponse property's minLength was decreased from4to2for the response status200response-property-min-length-decreased
- ▲
- ▲
the
accounts/items/nameresponse property's maxLength was increased from20to32for the response status200response-property-max-length-increased
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 52 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 52 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
accounts/items/userresponse's property type/format changed fromstring/toobject/for status200response-property-type-changed
- ○
added the required property
accounts/items/user/_idto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/createdAtto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/identityEthAddressto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/rewardsEthAddressto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/rolesto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/updatedAtto the response with the200statusresponse-required-property-added
- ○
added the required property
accounts/items/user/usernameto the response with the200statusresponse-required-property-added
- ▲
- ○
added the optional property
givenTotalCountto the response with the200statusresponse-optional-property-added
- ○
added the optional property
givenTotalScoreto the response with the200statusresponse-optional-property-added
- ○
added the optional property
receivedTotalCountto the response with the200statusresponse-optional-property-added
- ○
added the optional property
receivedTotalScoreto the response with the200statusresponse-optional-property-added
- ○
added the required property
_idto the response with the200statusresponse-required-property-added
- ○
added the required property
accountsto the response with the200statusresponse-required-property-added
- ○
added the required property
createdAtto the response with the200statusresponse-required-property-added
- ○
added the required property
identityEthAddressto the response with the200statusresponse-required-property-added
- ○
added the required property
rolesto the response with the200statusresponse-required-property-added
- ○
added the required property
updatedAtto the response with the200statusresponse-required-property-added
- ○