Skip to content
gist.link ↗

saveWebhookEndpoint

Mutation Shipping API — POST https://shipping.api.gist.link/graphql

Create (no uuid) or update (uuid) an outbound webhook. The secret is only returned on create.

shipping:mutation:saveWebhookEndpoint

The calling IAM key must hold this permission (or a wildcard that covers it: shipping:mutation:* or shipping:*) and the access token must have been minted with audience=shipping. See Permissions.

type Mutation {
saveWebhookEndpoint(input: SaveWebhookEndpointInput!): WebhookEndpoint!
}
Argument Type Required Description
input SaveWebhookEndpointInput! Yes —

WebhookEndpoint! — see the Shipping types reference.

Terminal window
curl https://shipping.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SaveWebhookEndpoint($input: SaveWebhookEndpointInput!) { saveWebhookEndpoint(input: $input) { uuid url events active secret createdAt } }",
"variables": {
"input": {
"url": "example",
"events": [
"example"
]
}
}
}
JSON