Set a site's URLs and credentials

Set the review URL for a site, and optionally its landing page URL and the login credentials used for posting. This is the step that starts review collection: as soon as a URL is saved on an active location, collection is switched on and a first collection is queued. Identify the connection one of three ways: store_review_site_id, or store_id + review_site_id, or client_location_id + review_site_id. Then send the url, and optionally landing_page_url (defaults to url), username and password. A few sites need extra fields (BBB, Caring, SeniorAdvisor). Important: this call replaces the whole connection, not just the fields you send. If you leave out url, the URL is cleared and collection stops, so always send the url.

Prerequisites: a bearer token (or the invite hash from a connection link) and the connection: its store_review_site_id, or the location plus review_site_id.

Authentication: Partner or Account token. The connection must be on a location inside your own account tree (a Partner token reaches any location under the partner, an Account token only its own account's locations); otherwise 422. client_location_id is looked up only among the locations your token can reach. Or, with no token, send the invite hash with store_review_site_id; the connection must be on the location the hash is for.

Rate limit: 30 requests per minute, counted per client IP address.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
Defaults to 8782

The connection's id. Send this, or store_id + review_site_id, or client_location_id + review_site_id. When you send more than one, store_review_site_id wins, then store_id.

integer
Defaults to 3007

The location, used with review_site_id. Must exist.

string
length ≤ 255
Defaults to docs-test-loc-001

Your own id for the location, used with review_site_id. Up to 255 characters.

integer
Defaults to 1

The review site. Required with store_id or client_location_id. Must exist.

string
Defaults to 5oogfx

The invite hash from a connection link, used instead of a token. Only with store_review_site_id.

uri
length between 5 and 2000
Defaults to https://www.yelp.com/biz/demo

The site's review URL for the location. A valid URL, 5–2000 characters. Always send it: leaving it out clears the saved URL.

uri
length between 5 and 2000
Defaults to https://www.yelp.com/writeareview/biz/demo

Where review requests send customers to leave a review. A valid URL, 5–2000 characters. Defaults to url.

string
length between 2 and 1000
Defaults to [email protected]

The site's username. 2–1000 characters; no < or >. Leaving it out clears the saved username. Accepted and saved, but not used yet: posting responses with a site login isn't supported, so this doesn't connect posting. It will be supported for review sites whose auth_type is default in a future release.

string
length between 5 and 1000

The site's password. 5–1000 characters; no < or >. Leaving it out keeps the saved password. Required with username when the connection has no saved login yet (except on sites that don't use a login). Accepted and saved, but not used yet: posting responses with a site login isn't supported, so this doesn't connect posting. It will be supported for review sites whose auth_type is default in a future release.

string
Defaults to Jane Smith

BBB only (review site 45): the owner's name. Can't be empty when sent.

string
Defaults to [email protected]

BBB only: the owner's email. Can't be empty when sent.

string
length between 3 and 12
Defaults to 92014

BBB only: the location's zip, 3–12 characters. Can't be empty when sent.

string
Defaults to Jane

SeniorAdvisor only (review site 68): the replier's first name. Can't be empty when sent.

string
Defaults to Smith

SeniorAdvisor only: the replier's last name. Can't be empty when sent.

string
Defaults to [email protected]

SeniorAdvisor only: the replier's email. Can't be empty when sent.

string
Defaults to Manager

SeniorAdvisor only: the replier's job title. Can't be empty when sent.

string
length ≤ 255
Defaults to care-123

Caring only (review site 20): the location's Caring id. Required when review_site_id is 20. Up to 255 characters. Setting it connects Caring.

string
length ≤ 255
Defaults to Sunrise Senior Living

Caring only: the location's name on Caring. Required when review_site_id is 20. Up to 255 characters.

integer
enum
Defaults to 1

1, with username and password: confirms two-factor sign-in is off on the site, so responses held for two-factor verification are queued to post again.

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json