Update search visibility
PUT
/ admin/ v1/ stores/ {store_id}/ online-store/ search-visibilityReplace the store's search visibility; the storefront shows it at once.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
ai_crawlersenumrequiredWhich AI crawlers may read the store. Search engines' own crawlers are never kept out.
- all
- answers_only
- none
index_nowbooleanrequiredverificationsobjectA token, or the whole
<meta>tag the service gave; a blank one or a missing service is removed.
Returns
200 Saved.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedValidation failed.