WebhookCreateInput
No description
input WebhookCreateInput {
name: String
targetUrl: String
events: [WebhookEventTypeEnum!]
asyncEvents: [WebhookEventTypeAsyncEnum!]
syncEvents: [WebhookEventTypeSyncEnum!]
app: ID
isActive: Boolean
secretKey: String
query: String
customHeaders: JSONString
}
Fields
WebhookCreateInput.name
● String
scalar miscellaneous
The name of the webhook.
WebhookCreateInput.targetUrl
● String
scalar miscellaneous
The url to receive the payload.
WebhookCreateInput.events
● [WebhookEventTypeEnum!]
list enum webhooks
The events that webhook wants to subscribe.
DEPRECATED: this field will be removed in Saleor 4.0. Use
asyncEvents
orsyncEvents
instead.
WebhookCreateInput.asyncEvents
● [WebhookEventTypeAsyncEnum!]
list enum webhooks
The asynchronous events that webhook wants to subscribe.
WebhookCreateInput.syncEvents
● [WebhookEventTypeSyncEnum!]
list enum webhooks
The synchronous events that webhook wants to subscribe.
WebhookCreateInput.app
● ID
scalar miscellaneous
ID of the app to which webhook belongs.
WebhookCreateInput.isActive
● Boolean
scalar miscellaneous
Determine if webhook will be set active or not.
WebhookCreateInput.secretKey
● String
scalar miscellaneous
The secret key used to create a hash signature with each payload.
DEPRECATED: this field will be removed in Saleor 4.0. As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS.
WebhookCreateInput.query
● String
scalar miscellaneous
Subscription query used to define a webhook payload.
Added in Saleor 3.2
WebhookCreateInput.customHeaders
● JSONString
scalar miscellaneous
Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only
Added in Saleor 3.12X-*
,Authorization*
, andBrokerProperties
keys are allowed.This API is currently in Feature Preview and can be subject to changes at later point.
Member Of
webhookCreate
mutation