Skip to content

Update search visibility

PUT/admin/v1/stores/{store_id}/online-store/search-visibility

    Replace the store's search visibility; the storefront shows it at once.

    Path parameters

    • store_idstringrequired

      The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

    Headers

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Body

    • ai_crawlersenumrequired

      Which AI crawlers may read the store. Search engines' own crawlers are never kept out.

      • all
      • answers_only
      • none
    • index_nowbooleanrequired
    • verificationsobject

      A token, or the whole <meta> tag the service gave; a blank one or a missing service is removed.

    Returns

    200 Saved.

    Errors

    • 403forbiddenMissing permission.
    • 422validation_failedValidation failed.