UserAccounts

Update UserAccount

patch/api/useraccounts/{id}

Request body

accountIdstring
namestring
avatarIdstring
platformstring
activateTokenstring
userstring

Example request

{
  "accountId": "098098098098098",
  "name": "darth#6755",
  "avatarId": "098098098087097",
  "platform": "DISCORD",
  "activateToken": "jkhvuygi643jh35g53",
  "user": "63b428f7d9ca4f6ff5370d05"
}

Response

_idstring required
accountIdstring required
namestring required
avatarIdstring
platformstring required
createdAtstring date-time required
updatedAtstring date-time required
activateTokenstring

Example response

{
  "_id": "63b428f7d9ca4f6ff5370d05",
  "user": {
    "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
    "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
    "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
    "username": "darth"
  },
  "accountId": "098098098098098",
  "name": "darth#6755",
  "avatarId": "098098098087097",
  "platform": "DISCORD",
  "activateToken": "jkhvuygi643jh35g53"
}

Changes

Changed in 13 of the 50 revisions of this API.1814

    • 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

  • bc9e361c5d5d11See the full diff
    • the name response property's minLength was decreased from 4 to 2 for the response status 200

      response-property-min-length-decreased

    • the name request property's minLength was decreased from 4 to 2

      request-property-min-length-decreased

  • 78c48cd6718411See the full diff
    • the name response property's maxLength was increased from 20 to 32 for the response status 200

      response-property-max-length-increased

    • the name request property's maxLength was increased from 20 to 32

      request-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 user response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • added the required property user/_id to the response with the 200 status

      response-required-property-added

    • added the required property user/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property user/identityEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property user/rewardsEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property user/roles to the response with the 200 status

      response-required-property-added

    • added the required property user/updatedAt to the response with the 200 status

      response-required-property-added

    • added the required property user/username to the response with the 200 status

      response-required-property-added

    • endpoint added

      endpoint-added