Skip to content

Update function

PATCH/admin/v1/stores/{store_id}/functions/{function_id}
  • functions:manage

Renames, switches on or off, or reorders a function.

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.

  • function_idstringrequired

    The function's ID, like fn_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

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

Body

  • titlestring · or null
  • enabledboolean · or null

    Switching on again forgives earlier failures.

  • positioninteger · or null

Returns

200 Saved.