mutation {
webhook {
createSubscriptionWebhook(
refreshToken: "YOUR_REFRESH_TOKEN"
label: "Sample handlerAdepChanged"
subscription: "subscription handlerAdepChangedTest($oAuthClientId: OAuthClientId!) { integration { flightSupport { flightHandlerAdepChanged(oAuthClientId: $oAuthClientId) { flightNid handlingAdep { ... on FlightSupportChecklistItemValue { value { comment provider { name email } status { abbreviation caption status color } } } ... on ErrorList { errorList { category message path } } } } } } }"
variables: "{\"oAuthClientId\": \"YOUR_OAUTH_CLIENT_ID\"}"
webhookUrl: "https://YOUR_WEBHOOK_URL"
includeAuthorizationHeader: true
) {
... on CreateSubscriptionWebhookViolationList {
error: value {
message
path
category
}
}
... on NonNullBooleanValue {
success: value
}
}
}
}