{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new App for an account","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/magic_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/magic_app_add_single_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"magic_identifier":{"description":"Identifier","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"magic_app_add_single_request":{"type":"object","properties":{"hostnames":{"$ref":"#/definitions/magic_app_hostnames"},"ip_subnets":{"$ref":"#/definitions/magic_app_subnets"},"name":{"$ref":"#/definitions/magic_app_name"},"source_subnets":{"$ref":"#/definitions/magic_app_source_subnets"},"type":{"$ref":"#/definitions/magic_app_type"}},"anyOf":[{"required":["hostnames"],"title":"Hostnames","type":"object"},{"required":["ip_subnets"],"title":"Subnets","type":"object"},{"required":["source_subnets"],"title":"Source Subnets","type":"object"}],"required":["name","type"]},"magic_app_hostnames":{"description":"FQDNs to associate with traffic decisions.","type":"array","items":{"type":"string","examples":["auth.cloudflare.com"]}},"magic_app_subnets":{"description":"IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)","type":"array","items":{"allOf":[{"$ref":"#/definitions/magic_cidr"},{"type":"string","examples":["1.1.1.1/32"]}]}},"magic_app_name":{"description":"Display name for the app.","type":"string","examples":["Cloudflare Dashboard"]},"magic_app_source_subnets":{"description":"IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)","type":"array","items":{"allOf":[{"$ref":"#/definitions/magic_cidr"},{"type":"string","examples":["1.1.1.1/32"]}]}},"magic_app_type":{"description":"Category of the app.","type":"string","examples":["Development"]},"magic_cidr":{"description":"A valid CIDR notation representing an IP range.","type":"string","examples":["192.0.2.0/24"]}}},"name":"Create a new App","id":"cloudflare.magic-account-apps-add-app","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"Cloudflare Dashboard","type":"Development","hostnames":[]}},"maxRequests":1,"summary":false}}