curl --request PUT \
--url https://services.leadconnectorhq.com/locations/{locationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"companyId": "UAXssdawIWAWD",
"name": "Mark Shoes",
"phone": "+1410039940",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"prospectInfo": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@mail.com"
},
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
},
"twilio": {
"sid": "AC_XXXXXXXXXXX",
"authToken": "77_XXXXXXXXXXX"
},
"mailgun": {
"apiKey": "key-XXXXXXXXXXX",
"domain": "replies.yourdomain.com"
},
"snapshot": {
"id": "XXXXXXXXXXX",
"override": false
}
}
'{
"id": "ve9EPM428h8vShlRW1KT",
"companyId": "UAXssdawIWAWD",
"name": "Mark Shoes",
"phone": "+1410039940",
"email": "john.doe@mail.com",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"domain": "test.msgsndr.com",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
}
}Update a Sub-Account (Formerly Location) based on the data provided
curl --request PUT \
--url https://services.leadconnectorhq.com/locations/{locationId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"companyId": "UAXssdawIWAWD",
"name": "Mark Shoes",
"phone": "+1410039940",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"prospectInfo": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@mail.com"
},
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
},
"twilio": {
"sid": "AC_XXXXXXXXXXX",
"authToken": "77_XXXXXXXXXXX"
},
"mailgun": {
"apiKey": "key-XXXXXXXXXXX",
"domain": "replies.yourdomain.com"
},
"snapshot": {
"id": "XXXXXXXXXXX",
"override": false
}
}
'{
"id": "ve9EPM428h8vShlRW1KT",
"companyId": "UAXssdawIWAWD",
"name": "Mark Shoes",
"phone": "+1410039940",
"email": "john.doe@mail.com",
"address": "4th fleet street",
"city": "New York",
"state": "Illinois",
"domain": "test.msgsndr.com",
"country": "US",
"postalCode": "567654",
"website": "https://yourwebsite.com",
"timezone": "US/Central",
"settings": {
"allowDuplicateContact": false,
"allowDuplicateOpportunity": false,
"allowFacebookNameMerge": false,
"disableContactTimezone": false
},
"social": {
"facebookUrl": "https://www.facebook.com/",
"googlePlus": "https://www.googleplus.com/",
"linkedIn": "https://www.linkedIn.com/",
"foursquare": "https://www.foursquare.com/",
"twitter": "https://www.foutwitterrsquare.com/",
"yelp": "https://www.yelp.com/",
"instagram": "https://www.instagram.com/",
"youtube": "https://www.youtube.com/",
"pinterest": "https://www.pinterest.com/",
"blogRss": "https://www.blogRss.com/",
"googlePlacesId": "ChIJJGPdVbQTrjsRGUkefteUeFk"
}
}Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
API Version
2021-07-28 Location Id
Company/Agency Id
"UAXssdawIWAWD"
The name for the sub-account/location
"Mark Shoes"
The phone number of the business for which sub-account is created
"+1410039940"
The address of the business for which sub-account is created
"4th fleet street"
The city where the business is located for which sub-account is created
"New York"
The state in which the business operates for which sub-account is created
"Illinois"
The country in which the business is present for which sub-account is created
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, AN, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, GB, UA, AE, US, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW "US"
The postal code of the business for which sub-account is created
"567654"
The website of the business for which sub-account is created
"https://yourwebsite.com"
The timezone of the business for which sub-account is created
"US/Central"
Show child attributes
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@mail.com"
}Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Successful update response
Location Id
"ve9EPM428h8vShlRW1KT"
Company/Agency Id
"UAXssdawIWAWD"
The name for the sub-account/location
"Mark Shoes"
The phone number of the business for which sub-account is created
"+1410039940"
The email for the sub-account/location
"john.doe@mail.com"
The address of the business for which sub-account is created
"4th fleet street"
The city where the business is located for which sub-account is created
"New York"
The state in which the business operates for which sub-account is created
"Illinois"
"test.msgsndr.com"
The country in which the business is present for which sub-account is created
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, AN, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, GB, UA, AE, US, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW "US"
The postal code of the business for which sub-account is created
"567654"
The website of the business for which sub-account is created
"https://yourwebsite.com"
The timezone of the business for which sub-account is created
"US/Central"
Show child attributes
Show child attributes
Was this page helpful?