{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates or replaces the public key that payload logging uses to encrypt matched payloads for the account. It applies to every zone in the account that has no zone key. Requires a plan that includes payload logging (Enterprise); otherwise it returns 403.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/firewall_account_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/firewall_payload_logging_key"}},"required":["path","body"],"additionalProperties":false,"definitions":{"firewall_account_identifier":{"description":"Defines an account identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"firewall_payload_logging_key":{"type":"object","properties":{"public_key":{"description":"Defines the X25519 public key, as standard base64 of exactly 32 bytes, that encrypts matched payloads. Cloudflare stores only the public key; keep the private key to decrypt logged payloads.","type":"string","maxLength":44,"minLength":44,"examples":["Ycig/Zr/pZmklmFUN99nr+taURlYItL91g+NcHGYpB8="]}},"required":["public_key"]}}},"name":"Set the payload logging key","id":"cloudflare.payload-logging-keys-for-an-account-set-the-payload-logging-key","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"public_key":"Ycig/Zr/pZmklmFUN99nr+taURlYItL91g+NcHGYpB8="}},"maxRequests":1,"summary":false}}