v1

latestOpenAPI 3.1.02026-08-0662251219.8 KB
Companies

Update company

This endpoint updates a company by ID.

put/v2/companies/{companyId}

Path parameters

companyIdstring uuid required

Identifier for company.

Request body

namestring required

Company name

emailDomainsstring[]

List of the company email domains

billingCurrencystring required

Billing currency of the company

isSelfSignUpEnabledboolean

Boolean to show if company has self sign up enabled.

isActiveboolean

Boolean to show if this is an active company.

companyRolesCompanyRole[] required

Company roles

ccEmailAddressesstring[]

List of email addresses on which all confirmation emails will be cced. This is applicable only for company roles 'ORG'

bccEmailAddressesstring[]

List of email addresses on which all confirmation emails will be bcced. This is applicable only for company roles 'ORG'

redirectUrlstring

Redirect URL for the company. It is applicable only for company roles 'PARTNER_TMC'

mobileRedirectUrlstring

Redirect URL for the company for mobile. It is applicable only for company roles 'PARTNER_TMC'

applicableCustomFieldTypesCustomFieldType[]

List of custom fields supported by the company.

externalIdstring

External id to be linked with this.

isFakeboolean

Whether the company is a fake company for testing. This is for internal use.

loyaltyBlockedCountriesstring[]

List of 2 letter country codes where business travelers should not be allowed to add loyalty info.

allowDomainBasedAuthConfigboolean

Whether to allow user to get auth config based on email domain

Response

Updated Successfully