{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a custom application for an account from a name, category, and optional network matchers.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","examples":["023e105f4ecef8ad9ca31a8372d0c353"],"description":"Account ID."}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/alexandria_create_application_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"alexandria_create_application_request":{"description":"Defines a custom application. At least one hostname or IP subnet is required.\nSupport domains and port/protocol pairs do not satisfy this requirement.\nA NUL character (U+0000) in any string value returns `400`.\n","type":"object","properties":{"category_id":{"$ref":"#/definitions/alexandria_category_id"},"hostnames":{"$ref":"#/definitions/alexandria_application_hostnames"},"human_id":{"$ref":"#/definitions/alexandria_application_human_id"},"ip_subnets":{"$ref":"#/definitions/alexandria_application_ip_subnets"},"name":{"$ref":"#/definitions/alexandria_application_name"},"port_protocols":{"$ref":"#/definitions/alexandria_application_port_protocols"},"support_domains":{"$ref":"#/definitions/alexandria_application_support_domains"}},"anyOf":[{"properties":{"hostnames":{"allOf":[{"$ref":"#/definitions/alexandria_application_hostnames"},{"items":{"minLength":1,"pattern":".*\\S.*","type":"string"},"minItems":1,"type":"array"}]}},"required":["hostnames"],"type":"object"},{"properties":{"ip_subnets":{"allOf":[{"$ref":"#/definitions/alexandria_application_ip_subnets"},{"items":{"type":"string"},"minItems":1,"type":"array"}]}},"required":["ip_subnets"],"type":"object"}],"required":["name","human_id","category_id"]},"alexandria_category_id":{"description":"Numeric identifier for an application category.","type":"integer","maximum":4294967295,"minimum":1,"examples":[12]},"alexandria_application_hostnames":{"description":"Hostnames matched by the application.","type":"array","items":{"type":"string"},"examples":[["example.com","foo.com"]]},"alexandria_application_human_id":{"description":"Human-readable identifier for the application.","type":"string","examples":["HR"]},"alexandria_application_ip_subnets":{"description":"IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.","type":"array","items":{"type":"string"},"examples":[["192.168.1.0/24","2001:db8::/48"]]},"alexandria_application_name":{"description":"Application name.","type":"string","examples":["HR"]},"alexandria_application_port_protocols":{"description":"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535.","type":"array","items":{"type":"string"},"examples":[["tcp/443","udp/10000-20000"]]},"alexandria_application_support_domains":{"description":"Support domains matched by the application.","type":"array","items":{"type":"string"},"examples":[["example.com","foo.com"]]}}},"name":"Create application","id":"cloudflare.createresourcelibraryapplication","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"name":"HR","human_id":"HR","category_id":12,"hostnames":["example.com","foo.com"]}},"maxRequests":1,"summary":false}}