mutation {
webhook {
createSubscriptionWebhook(
refreshToken: "YOUR_REFRESH_TOKEN"
label: "Sample flightCrewChanged"
subscription: "subscription flightCrewChanged($oAuthClientId: OAuthClientId!) { integration { flightSupport { flightCrewChanged(oAuthClientId: $oAuthClientId) { flight { flightNid crewCount crewList { position { posNid name positionType posType order occupation rawName positionGroup } name surname code arrivalTravelDocument { travelDocumentType number dateOfIssue dateOfExpiry country { code codeIso } nationality { code codeIso } name surname } departureTravelDocument { travelDocumentType number dateOfIssue dateOfExpiry country { code codeIso } nationality { code codeIso } name surname } dateOfBirth placeOfBirth gender nationality { code codeIso } } } } } } }"
variables: "{\"oAuthClientId\": \"YOUR_OAUTH_CLIENT_ID\"}"
webhookUrl: "https://YOUR_WEBHOOK_URL"
includeAuthorizationHeader: true
) {
... on CreateSubscriptionWebhookViolationList {
error: value {
message
path
category
}
}
... on NonNullBooleanValue {
success: value
}
}
}
}