Mutation
mutation RotateWebhookSecret($input: RotateWebhookSecretInput!) {
rotateWebhookSecret(input: $input) {
rotatedWebhookSecret {
signingSecret
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"rotateWebhookSecret": {
"rotatedWebhookSecret": {
"signingSecret": "string"
}
}
}
}Mutations
rotateWebhookSecret
Replaces the signing secret of a webhook and returns the new one, shown only here. The old secret stops working at once: every delivery from now on, retries included, is signed with the new one. Fails with a top-level ValidationError for an event destination that isn’t a webhook.
MUTATION
rotateWebhookSecret(input: RotateWebhookSecretInput!): RotateWebhookSecretPayload!Arguments
input
required
Returns
rotatedWebhookSecret
Mutation
mutation RotateWebhookSecret($input: RotateWebhookSecretInput!) {
rotateWebhookSecret(input: $input) {
rotatedWebhookSecret {
signingSecret
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"rotateWebhookSecret": {
"rotatedWebhookSecret": {
"signingSecret": "string"
}
}
}
}Was this page helpful?