Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.
Update an existing webhook target — for example to change the URL, pause deliveries by setting isEnabled to false, change which events are delivered, or move to a newer schema version. Field-level wrapper inputs apply for scalar fields — pass { "value": ... } for the fields you want to change. eventSubscriptions is the exception: it’s a full replacement of the previous list, so include every event type the target should subscribe to.
Mutation
mutation updateWebhookTarget($input: UpdateWebhookTargetInput!) {
  updateWebhookTarget(input: $input) {
    webhookTarget {
      id
      url
      isEnabled
      eventSubscriptions {
        eventType
      }
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "webhookTargetId": "wt_01HXXXXXXXXXXXXXXXXXXXXXXX",
    "isEnabled": { "value": false }
  }
}