Mutation
mutation CreateEventDestination($input: CreateEventDestinationInput!) {
createEventDestination(input: $input) {
createdEventDestination {
eventDestination {
createdAt
filter
filterDialectVersion
id
name
startsAfterSequence
}
signingSecret
}
}
}Variables
{
"input": {
"filter": "string",
"name": "string",
"type": "WEBHOOK"
}
}Response
{
"data": {
"createEventDestination": {
"createdEventDestination": {
"eventDestination": {
"createdAt": "value",
"filter": "string",
"filterDialectVersion": 1,
"id": "value",
"name": "string",
"startsAfterSequence": "string"
},
"signingSecret": "string"
}
}
}
}Mutations
createEventDestination
Creates an event destination and returns it with, for a webhook, its signing secret, shown only here. A webhook starts in PENDING_VERIFICATION (call verifyEventDestination); the other types start ACTIVE and receive events from now on. Fails with a top-level ValidationError for an invalid name, filter or target, or a configuration that doesn’t match type.
MUTATION
createEventDestination(input: CreateEventDestinationInput!): CreateEventDestinationPayload!Arguments
input
required
Returns
createdEventDestination
Mutation
mutation CreateEventDestination($input: CreateEventDestinationInput!) {
createEventDestination(input: $input) {
createdEventDestination {
eventDestination {
createdAt
filter
filterDialectVersion
id
name
startsAfterSequence
}
signingSecret
}
}
}Variables
{
"input": {
"filter": "string",
"name": "string",
"type": "WEBHOOK"
}
}Response
{
"data": {
"createEventDestination": {
"createdEventDestination": {
"eventDestination": {
"createdAt": "value",
"filter": "string",
"filterDialectVersion": 1,
"id": "value",
"name": "string",
"startsAfterSequence": "string"
},
"signingSecret": "string"
}
}
}
}Was this page helpful?