{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Set one or more communication preferences for the authenticated user. Supply a map of preference keys to subscription states, and an optional language locale. This endpoint does not modify email verification settings. Callers authenticate with standard Cloudflare API tokens or keys.","properties":{"body":{"$ref":"#/definitions/cps_update_communication_preferences_request","examples":[{"language-locale":"es-ES","preferences":{"marketing":{"subscribed":true},"product_news":{"subscribed":true}}}]}},"required":["body"],"additionalProperties":false,"definitions":{"cps_update_communication_preferences_request":{"description":"Request body for updating communication preferences. An email field in the payload is ignored; email verification state is managed separately, so the field is excluded from this schema.","type":"object","properties":{"language-locale":{"description":"The user's preferred language locale for communications. If omitted, the language locale does not change.","type":"string","enum":["en-US","es-ES","de-DE","fr-FR","it-IT","ja-JP","ko-KR","pt-BR","zh-CN","zh-TW"],"examples":["en-US"]},"preferences":{"description":"Preference keys mapped to subscription states to update. Only the preferences in this map change; others remain unchanged.","type":"object","additionalProperties":{"properties":{"subscribed":{"description":"Whether to subscribe or unsubscribe from this communication type.","type":"boolean"}},"required":["subscribed"],"type":"object"},"examples":[{"marketing":{"subscribed":false},"product_news":{"subscribed":true}}]}}}}},"name":"Update communication preferences","id":"cloudflare.user-communication-preferences-update","example":{"body":{}},"maxRequests":1,"summary":false}}