Skip to content
Navigation

Update my account

PUT
https://api.nicer.travel/identity/user

Changes the signed-in person's own account: givenName, familyName, email, biography, calendarUrl, instagram, location, zoneinfo and tourProgress; companyName, only as the agency the request acts for; and their bookingAccessEnabled and onboardingCompleted settings at that agency, which need it to be named (403 ERROR_DO_NOT_HAVE_PERMISSION otherwise). A new email is also the one they sign in with, in every agency. Any other field, or a value of the wrong type, is refused with 400 ERROR_BODY_VALIDATION. Answers the account as it now stands. Any signed-in person, for their own account only.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • biography
    optional
    string
  • calendarUrl
    optional
    string
    format: uri
  • companyName
    optional
    string
    minLength: 1
  • email
    optional
    string
    format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
  • bookingAccessEnabled
    optional
    boolean
  • familyName
    optional
    string
  • givenName
    optional
    string
  • instagram
    optional
    string
  • location
    optional
    object
    • city
      optional
      string
    • country
      optional
      string
    • countryCode
      optional
      string
    • state
      optional
      string
  • onboardingCompleted
    optional
    boolean
  • tourProgress
    optional
    map of
    object
  • zoneinfo
    optional
    string

Returns

200

OK

JSON
  • familyName
    string
    required

    The person's last name.

  • fullName
    required

    givenName and familyName joined; null until the person has both.

    Any of the following:

    • string
    • null
  • givenName
    string
    required

    The person's first name.

  • role
    advisor
    or
    traveler
    or
    admin
    or
    superadmin
    required

    The person's role in the agency they last switched into.

  • tenantId
    string
    required

    The partition the account is stored in: the userId for every account opened today.

  • userId
    string
    required

    The person's id, their sign-in subject.

  • createdAt
    string
    required

    When the account was opened.

  • type
    string
    required
  • updatedAt
    string
    required

    When the account last changed.

  • avatar
    optional
    string

    The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.

  • biography
    optional

    What the person writes about themself.

    Any of the following:

    • string
    • null
  • calendarUrl
    optional

    A link where people book time with the person.

    Any of the following:

    • string
    • null
  • companyName
    optional

    The agency the person last switched into; null, empty or absent on some older accounts.

    Any of the following:

    • string
    • null
  • deleted
    optional
    boolean

    True once the account is closed.

  • deletedAt
    optional

    When the account was closed.

    Any of the following:

    • string
    • null
  • deletedBy
    optional
    string

    The user id of whoever closed the account.

  • email
    optional

    The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.

    Any of the following:

    • string
    • null
  • externalIntercomId
    optional

    A support-tool id some older accounts keep.

    Any of the following:

    • string
    • null
  • instagram
    optional

    The person's Instagram handle.

    Any of the following:

    • string
    • null
  • invitedAt
    optional

    When the person was invited, on some older accounts.

    Any of the following:

    • string
    • null
  • invitedBy
    optional

    The user id of whoever invited or referred the person.

    Any of the following:

    • string
    • null
  • lastModifiedBy
    optional
    string

    The user id of whoever last changed the account.

  • location
    optional
    object

    Where the person says they are.

    • address
      optional
      string
    • city
      optional
      string
    • country
      optional
      string
    • countryCode
      optional
      string
    • latitude
      optional
      number
    • longitude
      optional
      number
    • neighborhood
      optional
      string
    • region
      optional
      string
    • state
      optional
      string
    • zipCode
      optional
      string
  • phoneNumber
    optional

    The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.

    Any of the following:

    • string
    • null
  • registrationSource
    optional
    string

    How the account was opened, such as INVITATION_REGISTRATION.

  • searchKey
    optional
    string

    fullName in lowercase, which searches match.

  • tenantOwner
    optional
    boolean

    Set on some older accounts.

  • tourProgress
    optional
    map of
    object

    The in-app product tours the person completed, skipped or dismissed, by tour id.

  • username
    optional
    string

    The person's handle, made from their name, for referral links.

  • zoneinfo
    optional

    The person's time zone, an IANA name such as America/Bogota.

    Any of the following:

    • string
    • null

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close