propose_write
automation

Change one section of the Marketing Brain’s configuration. `value` is a partial of the section’s value as the configurat

Changed on

Change one section of the Marketing Brain’s configuration. value is a partial of the section’s value as the configuration read returns it; a key set to null is removed. Pass the section’s version from that read as expected_version: a section that changed since is refused version_conflict. Changes that narrow what the Brain may do (a lower cap, a higher confidence floor, an area switched off, a brake on, a mode or autonomy step down) run under this connection’s grant. A change that gives the Brain more room anywhere creates an approval card a person must approve, with the keys named (requires_approval). Switching autopilot on is refused preflight_incomplete: a person chooses its safety settings in Magistry. Advisory sections (the ads thresholds) are accepted both ways.

post/api/v1/tools/brain_config_patch

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesautomation:write

Headers

Idempotency-Key, string

Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
section, 'mode' | 'autonomy' | 'areas' | 'confidence' | 'exploration' | 'brakes' | 'season_pacing' | 'capabilities' | 'mandate' | 'ga4_autofix' | 'cadence' | 'directives' | 'envelope' | 'scaling' | 'company_ceilings' | 'campaign_disabled' | 'campaign_limits' | 'campaign_actions' | 'campaign_approval' | 'campaign_auto_apply_policy' | 'campaign_platforms' | 'campaign_thresholds' | 'insight_autopilot' | 'markets' | 'automations' required
value, object required

Partial section value; null removes a key.

expected_version, string required

The section’s version, as last read.

reason, string

Why, shown on the card and in the audit.

idempotency_key, string required

Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision