{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates an event subscription for a Queue.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/mq_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"destination":{"$ref":"#/definitions/mq_event-destination"},"enabled":{"description":"Whether the subscription is active","type":"boolean"},"events":{"description":"List of event types this subscription handles","type":"array","items":{"type":"string"},"minItems":1},"name":{"description":"Name of the subscription","type":"string"},"source":{"$ref":"#/definitions/mq_event-source"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"mq_identifier":{"description":"A Resource identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"mq_event-destination":{"description":"Destination configuration for the subscription","type":"object","oneOf":[{"$ref":"#/definitions/mq_event-destination-queue"}]},"mq_event-source":{"description":"Source configuration for the subscription","type":"object","oneOf":[{"$ref":"#/definitions/mq_event-source-images"},{"$ref":"#/definitions/mq_event-source-kv"},{"$ref":"#/definitions/mq_event-source-r2"},{"$ref":"#/definitions/mq_event-source-super-slurper"},{"$ref":"#/definitions/mq_event-source-vectorize"},{"$ref":"#/definitions/mq_event-source-workers-ai-model"},{"$ref":"#/definitions/mq_event-source-workers-builds-worker"},{"$ref":"#/definitions/mq_event-source-workers-script"},{"$ref":"#/definitions/mq_event-source-workflows-workflow"}]},"mq_event-destination-queue":{"type":"object","properties":{"queue_id":{"description":"ID of the target queue","type":"string"},"type":{"description":"Type of destination","type":"string","enum":["queues.queue"]}},"required":["type","queue_id"]},"mq_event-source-images":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["images"]}}},"mq_event-source-kv":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["kv"]}}},"mq_event-source-r2":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["r2"]}}},"mq_event-source-super-slurper":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["superSlurper"]}}},"mq_event-source-vectorize":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["vectorize"]}}},"mq_event-source-workers-ai-model":{"type":"object","properties":{"model_name":{"description":"Name of the Workers AI model","type":"string"},"type":{"description":"Type of source","type":"string","enum":["workersAi.model"]}}},"mq_event-source-workers-builds-worker":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["workersBuilds.worker"]},"worker_name":{"description":"Name of the worker","type":"string"}}},"mq_event-source-workers-script":{"type":"object","properties":{"script_tag":{"description":"Tag of the Worker script","type":"string"},"type":{"description":"Type of source","type":"string","enum":["workers.script"]}}},"mq_event-source-workflows-workflow":{"type":"object","properties":{"type":{"description":"Type of source","type":"string","enum":["workflows.workflow"]},"workflow_name":{"description":"Name of the workflow","type":"string"}}}}},"name":"Create Event Subscription","id":"cloudflare.subscriptions-create","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1,"summary":false}}