createNotificationCallbackConfig mutation
Creates the callback configuration for the lodging partner account, including the callback URL (where notification events are sent when they occur), API key, partner email address (where secret expiry warnings are sent), and request timeout value. If the partner's notification profile does not exist, this mutation will create the profile, too.
Syntax
1mutation {2 createNotificationCallbackConfig(5}
Example
- Request
- Response
1mutation {2 createNotificationCallbackConfig (3 input: {4 callbackUrl : "https://testcallbackurl.com",5 apiKey : "newapikey",6 requestTimeoutSeconds: 50,7 contactEmail: "partner@email.com"8 }9 ) {10 callbackConfig {11 id12 callbackUrl13 secretExpirationDateTime14 requestTimeoutSeconds15 contactEmail16 }17 secret18 }19}
Arguments
Name | Description |
---|---|
| Required. Details used when creating the callback configuration. Type: CreateNotificationCallbackConfigInput |
Types
Name | Type | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CreateNotificationCallbackConfigInput | InputObject | |||||||||||||
Details about the callback configuration.
| ||||||||||||||
CreateNotificationCallbackConfigPayload | Object | |||||||||||||
Details about the callback configuration returned by the mutation.
| ||||||||||||||
EmailAddress | EmailAddress | |||||||||||||
A field whose value conforms to the standard internet email address format as specified in HTML Spec. | ||||||||||||||
ID | ID | |||||||||||||
The | ||||||||||||||
Int | Int | |||||||||||||
The | ||||||||||||||
LocalDateTime | LocalDateTime | |||||||||||||
A type representing a date and time (such as 2007-12-03T10:15:30). | ||||||||||||||
NotificationCallbackConfig | Object | |||||||||||||
Details about the callback configuration.
| ||||||||||||||
String | String | |||||||||||||
The | ||||||||||||||
Url | Url | |||||||||||||
Scalar type whose value conforms to the standard URL format as specified in RFC3986 specification. |