API
Update Profile

Update Profile

To update user profile, you need to use following mutation:

mutation Update(
    $firstName: String!
    $lastName: String!
    $birthDate: String!
    $address: ComponentDefaultAddressInput!
  ) {
    updateUser(
      firstName: $firstName
      lastName: $lastName
      birthDate: $birthDate
      address: $address
    ) {
      id
      address {
        country
      }
      isProfileCompleted
      phone
      kycStatus
      firstName
      lastName
      birthDate
    }
  }

with following variables:

{
  "firstName": "Dmytro",
  "lastName": "Morozov",
  "birthDate": "1996-01-10",
  "address": {
    "country": "PL"
  }
}

Authorization: Bearer ACCESS_TOKEN

Response:

{
  "data": {
    "updateUser": {
      "id": "22",
      "address": {
        "country": "PL"
      },
      "isProfileCompleted": true,
      "phone": "",
      "kycStatus": "APPROVED",
      "firstName": "Dmytro",
      "lastName": "Morozov",
      "birthDate": "1996-01-10"
    }
  }
}