CreateDevToWebhook

Creates a webhook that will be notified whenever an article is created or published on DEV.to

See the counter example on Destroying a Webhook on DEV.to.

You can find or create your DEV.to API keys in the settings menu on dev.to

mutation CreateDevToWebhook($apiKey: String!) { devTo(auths: { devToAuth: { apiKey: $apiKey } }) { createWebhook( input: { webhookEndpoint: { source: "OneGraph" targetUrl: "https://websmee.com/hook/dev-to-example?_websmee_inspect" events: [ "article_created" "article_updated" ] } } ) { webhook { id source targetUrl events createdAt } } } }
Types used in this example
Mutation

No description

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

DevToMutation

The root for DevTo mutations

OneGraphServiceAuths

No description

OneGraphDevToAuthArg

No description

DevToCreateWebhookPayload

Payload for the createWebhook mutation.

DevToWebhook

No description

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

____________________________________________________________________________________________________