{"command":{"summary":false,"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update the custom topic list of the zone, overwriting it entirely with the topics in the request, so include\nevery topic you want to keep. Changes can take up to a minute to propagate.\n\nEach entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic`\ndescription, which the classifier scores prompts against while AI Security for Apps is enabled. The following\nrules apply:\n\n- A zone can hold at most 20 topics.\n- `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens.\n- `topic` must be 2–50 UTF-8 bytes. Text in any language is supported, including spaces, numbers,\n  punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed.\n- Labels must be unique within the zone, and so must topic descriptions.","properties":{"path":{"type":"object","properties":{"zone_id":{"$ref":"#/definitions/waf-product-api-bundle_zone_id"}},"required":["zone_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/waf-product-api-bundle_custom-topics"}},"required":["path","body"],"additionalProperties":false,"definitions":{"waf-product-api-bundle_zone_id":{"description":"Defines the zone.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"waf-product-api-bundle_custom-topics":{"type":"object","properties":{"topics":{"description":"Custom topic categories for AI Security for Apps content detection.","type":"array","items":{"$ref":"#/definitions/waf-product-api-bundle_custom-topic"},"maxItems":20}}},"waf-product-api-bundle_custom-topic":{"type":"object","properties":{"label":{"description":"Unique label identifier. Must contain only lowercase letters (a–z), digits (0–9), and hyphens.","type":"string","maxLength":20,"minLength":2,"pattern":"^[a-z0-9-]+$","examples":["credit-cards"]},"topic":{"description":"Description of the topic category. Must contain 2–50 UTF-8 bytes. Text in any language is supported, including spaces, numbers, punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed.","type":"string","examples":["credit card numbers"]}},"required":["label","topic"]}}},"name":"Update the AI Security for Apps custom topics of a zone.","id":"cloudflare.ai-security-custom-topics-put","example":{"path":{"zone_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1}}