commercetools · Schema
SubscriptionDraft
Request body for creating a new subscription.
CommerceComposable CommerceE-CommerceGraphQLRESTSDK
Properties
| Name | Type | Description |
|---|---|---|
| key | string | User-defined unique key (2-256 characters). |
| destination | object | The message queue destination configuration. |
| messages | array | Message type filters for this subscription. |
| changes | array | Change type filters for this subscription. |
| format | object | Delivery format configuration. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/SubscriptionDraft",
"title": "SubscriptionDraft",
"type": "object",
"description": "Request body for creating a new subscription.",
"required": [
"destination"
],
"properties": {
"key": {
"type": "string",
"description": "User-defined unique key (2-256 characters)."
},
"destination": {
"type": "object",
"description": "The message queue destination configuration."
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "Message type filters for this subscription."
},
"changes": {
"type": "array",
"items": {
"type": "object"
},
"description": "Change type filters for this subscription."
},
"format": {
"type": "object",
"description": "Delivery format configuration."
}
}
}