Skip to content

Update redirect

PUT/admin/v1/stores/{store_id}/redirects/{redirect_id}
  • content:write

Replace a redirect's path and target.

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.

  • redirect_idstringrequired

    The redirect's ID, like redir_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

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

Body

  • pathstringrequired

    The old path; a full URL of another site counts by its path and query.

  • targetstringrequired

    A path on the store or an http(s) URL.

Returns

200 Saved.

Errors

  • 404not_foundNo such redirect.
  • 409Another redirect starts from this path.
  • 422validation_failedValidation failed, a loop or a chain.