Skip to content
Navigation

Update an agency

PUT
https://api.nicer.travel/identity/company/{companyName}

Changes the agency's display name and its card: of config, only locale, timezone and the branding's logoUrl, faviconUrl and primaryColor are written, and those three are replaced by what is sent, so one left out is cleared. The rest of the theme, the booking-site switches and the email sending domain are kept: they change through their own routes. Only Nicer staff change status (active or suspended). Publishes the change and answers the agency as it now stands. Agency admins and Nicer staff, for the agency the request acts for only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a status change by anyone but Nicer staff, 400 ERROR_ITEM_NOT_FOUND for another agency or one there is not.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • companyName
    string
    required

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Request body JSON required

  • config
    optional
    object
    • bookingSite
      optional
      object
      • advisorSites
        optional
        boolean
      • enabled
        optional
        boolean
      • handle
        optional
        string
    • branding
      optional
      object
      • accentColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • backgroundColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • bodyFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • borderColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • contact
        optional
        object
        • email
          optional
          string
          format: email · maxLength: 254 · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
        • instagram
          optional
          string
          maxLength: 64
        • phone
          optional
          string
          maxLength: 32
        • whatsapp
          optional
          string
          maxLength: 32
      • faviconUrl
        optional
        string
      • headingFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • hero
        optional
        object
        • imageUrl
          optional
          string
          format: uri · maxLength: 2048
        • subtitle
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 80
      • logoDarkUrl
        optional
        string
        format: uri · maxLength: 2048
      • logoUrl
        optional
        string
      • mode
        optional
        light
        or
        dark
        or
        system
      • mutedTextColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • primaryColor
        optional
        string
      • privacyUrl
        optional
        string
        format: uri · maxLength: 2048
      • radius
        optional
        integer
        maximum: 24 · minimum: 0
      • seo
        optional
        object
        • description
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 60
      • surfaceColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • textColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
    • emailSending
      optional
      object
      • checkedAt
        string
        required
      • dkimTokens
        array of
        string
        required
        minLength: 1
      • domain
        string
        required
        maxLength: 253 · minLength: 1
      • status
        FAILED
        or
        PENDING
        or
        VERIFIED
        required
      • tenant
        string
        required
        maxLength: 64 · minLength: 1
    • locale
      optional
      string
    • timezone
      optional
      string
  • displayName
    optional
    string
    maxLength: 128 · minLength: 1
  • status
    optional
    active
    or
    suspended

Returns

200

OK

JSON
  • companyName
    string
    required
    minLength: 1
  • config
    object
    required
    default: {}
    • bookingSite
      optional
      object
      • advisorSites
        optional
        boolean
      • enabled
        optional
        boolean
      • handle
        optional
        string
    • branding
      optional
      object
      • accentColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • backgroundColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • bodyFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • borderColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • contact
        optional
        object
        • email
          optional
          string
          format: email · maxLength: 254 · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
        • instagram
          optional
          string
          maxLength: 64
        • phone
          optional
          string
          maxLength: 32
        • whatsapp
          optional
          string
          maxLength: 32
      • faviconUrl
        optional
        string
      • headingFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • hero
        optional
        object
        • imageUrl
          optional
          string
          format: uri · maxLength: 2048
        • subtitle
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 80
      • logoDarkUrl
        optional
        string
        format: uri · maxLength: 2048
      • logoUrl
        optional
        string
      • mode
        optional
        light
        or
        dark
        or
        system
      • mutedTextColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • primaryColor
        optional
        string
      • privacyUrl
        optional
        string
        format: uri · maxLength: 2048
      • radius
        optional
        integer
        maximum: 24 · minimum: 0
      • seo
        optional
        object
        • description
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 60
      • surfaceColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • textColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
    • emailSending
      optional
      object
      • checkedAt
        string
        required
      • dkimTokens
        array of
        string
        required
        minLength: 1
      • domain
        string
        required
        maxLength: 253 · minLength: 1
      • status
        FAILED
        or
        PENDING
        or
        VERIFIED
        required
      • tenant
        string
        required
        maxLength: 64 · minLength: 1
    • locale
      optional
      string
    • timezone
      optional
      string
  • createdAt
    string
    required
  • createdBy
    string
    required
    minLength: 1
  • displayName
    string
    required
    minLength: 1
  • status
    active
    or
    suspended
    required
  • updatedAt
    string
    required
  • type
    string
    required

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