{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Submits repository intent for operator review. This endpoint does not immediately start execution. Worker-imported repositories must be ready; explicit repository host scopes must be authorized and explicit branch selections must exist before the request is persisted.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","pattern":"^[a-f0-9]{32}$","examples":["023e105f4ecef8ad9ca31a8372d0c353"]}},"required":["account_id"],"additionalProperties":false},"headers":{"type":"object","properties":{"Idempotency-Key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[!-~]+$","description":"Optional. Supply this header to safely retry a request. Required when `worker_script_name` is supplied."}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/managed-defense-vulnerability-discovery_CreateScan"}},"required":["path","body"],"additionalProperties":false,"definitions":{"managed-defense-vulnerability-discovery_CreateScan":{"type":"object","properties":{"repos":{"description":"Repository names must be unique within a request.","type":"array","items":{"additionalProperties":false,"properties":{"branch":{"description":"Branch to scan. Defaults to the repository's default branch.","type":"string","maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._/-]*$"},"hosts":{"description":"Explicit hostname scopes. Every hostname must be authorized for this repository before review admission; rejected scopes return 422 and do not persist a scan request.","type":"array","items":{"maxLength":253,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9.-]*[A-Za-z0-9]$","type":"string"},"maxItems":20,"minItems":1,"uniqueItems":true},"name":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[a-zA-Z0-9_.-]+$"}},"required":["name"],"type":"object"},"maxItems":100,"minItems":1,"uniqueItems":true},"telemetry_window":{"$ref":"#/definitions/managed-defense-vulnerability-discovery_TelemetryWindow"}},"additionalProperties":false,"required":["repos"]},"managed-defense-vulnerability-discovery_TelemetryWindow":{"description":"UTC ISO-8601 interval. Start is inclusive, end is exclusive, and the interval must be positive and at most seven days.","type":"object","properties":{"end":{"type":"string","format":"date-time"},"start":{"type":"string","format":"date-time"}},"required":["start","end"]}}},"name":"Create scan","id":"cloudflare.createaccountvulnerabilitydiscoveryscan","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"repos":[{"name":"example"}]}},"maxRequests":1,"summary":false}}