refreshNotificationCallbackConfigSecret mutation
Refreshes the secret of the API key used by the callback configuration. By default, a secret is valid for one year. No notification is sent when a secret expires; you can determine when it will expire using the secretExpirationDateTime
field. If a secret expires, notifications fail to be sent for active subscriptions, though we attempt to retry sending them according to the retry policy for the event type. If a secret is refreshed during these retry attempts, notifications will be sent successfully.
If the secret's expiry date is at least three days in the future, you can specify when the new secret is used by specifying the keepExistingSecretActive
input parameter. The old and new secrets are sent in the x-eg-notification-signature-v2
notification header, in this format: sha256=hash(timestamp.notification_payload with newSecret),hash(timestamp.notification_payload with oldSecret)
during this period.
Syntax
1mutation {2 refreshNotificationCallbackConfigSecret(5}
Example
- Request
- Response
1mutation {2 refreshNotificationCallbackConfigSecret (3 input: {4 callbackConfigId: "1969081f-8380-4dbd-9a19-c26fc1747b06",5 keepExistingSecretActive: true6 })7 {8 callbackConfigId9 secret10 secretExpirationDateTime11 previousSecretExpirationDateTime12 }13}
Arguments
Name | Description |
---|---|
| Required. Callback configuration to update. Type: RefreshNotificationCallbackConfigSecretInput |
Types
Name | Type | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Boolean | Boolean | |||||||||||
The | ||||||||||||
ID | ID | |||||||||||
The | ||||||||||||
LocalDateTime | LocalDateTime | |||||||||||
A type representing a date and time (such as 2007-12-03T10:15:30). | ||||||||||||
RefreshNotificationCallbackConfigSecretInput | InputObject | |||||||||||
Callback configuration to update.
| ||||||||||||
RefreshNotificationCallbackConfigSecretPayload | Object | |||||||||||
Details to use when updating the callback configuration's secret.
| ||||||||||||
String | String | |||||||||||
The |