Skip to main content
Version: 2021-04-15

Put Sub-Account (Formerly Location)

PUT 

/locations/:locationId

Update a Sub-Account (Formerly Location) based on the data provided

Request

Version stringrequired

API Version

Available options2021-04-15
locationId stringrequired

Location Id

application/json

Bodyrequired

    namestring

    The name for the sub-account/location

    phonestring

    The phone number of the business for which sub-account is created

    companyIdstringrequired

    Company/Agency Id

    addressstring

    The address of the business for which sub-account is created

    citystring

    The city where the business is located for which sub-account is created

    statestring

    The state in which the business operates for which sub-account is created

    countrystring

    The country in which the business is present for which sub-account is created

    Available optionsAFAXALDZASADAOAIAQAGARAM
    postalCodestring

    The postal code of the business for which sub-account is created

    websitestring

    The website of the business for which sub-account is created

    timezonestring

    The timezone of the business for which sub-account is created

    prospectInfoobject
    settingsobject

    The default settings for location

    socialobject

    The social media links for location

    twilioobjectdeprecated

    (DEPRECATED) The twilio credentials for location

    mailgunobject

    The mailgun credentials for location

    snapshotobject

    The snapshot to be updated in the location.

application/json

Successful update response

Schema
    idstring

    Location Id

    companyIdstring

    Company/Agency Id

    namestring

    The name for the sub-account/location

    phonestring

    The phone number of the business for which sub-account is created

    emailstring

    The email for the sub-account/location

    addressstring

    The address of the business for which sub-account is created

    citystring

    The city where the business is located for which sub-account is created

    statestring

    The state in which the business operates for which sub-account is created

    domainstring
    countrystring

    The country in which the business is present for which sub-account is created

    Available optionsAFAXALDZASADAOAIAQAGARAM
    postalCodestring

    The postal code of the business for which sub-account is created

    websitestring

    The website of the business for which sub-account is created

    timezonestring

    The timezone of the business for which sub-account is created

    settingsobject

    The default settings for location

    socialobject

    The social media links for location