Webhook
Update a webhook
Update a webhook subscription's topic or address URIs
put/admin/webhooks/{webhook_id:(?:\\d+)}.json
Request
- Base URLhttps://shop-name.onshopbase.com
- AuthAPI key in header APP_ACCESS_TOKEN
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"webhook": {
"address": "https://apple.com/uninstall",
"created_at": 901431826,
"fields": [
"id",
"updated_at"
],
"format": "json",
"id": 901431826,
"metafield_namespaces": [
"google",
"inventory"
],
"topic": "app/uninstalled",
"updated_at": 901431826
}
}Response
OK
Example response
{
"webhook": {
"address": "https://apple.com/uninstall",
"created_at": 901431826,
"fields": [
"id",
"updated_at"
],
"format": "json",
"id": 901431826,
"metafield_namespaces": [
"google",
"inventory"
],
"topic": "app/uninstalled",
"updated_at": 901431826
}
}Changes
No recorded changes to this operation across all 1 revision of this API.