Change a line of a brand's strategy (its words, Keep or Mute)
PATCH/brands/:brandId/strategy/lines/:lineId
Changes one line, as on the brand page: state: "on" keeps it (Keep), state: "off" mutes it (Not this), or the fields sent rewrite its words (a null takes an optional field away). Never both. Answers the section's new revision and its lines.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 503
OK. The line was changed.
Bad Request (VALIDATION_ERROR). A text is only spaces.
Unauthorized. Missing, malformed, unknown, revoked, or expired bearer token — or the token owner no longer holds the required entitlement (ENTITLEMENT_LOST). A uniform problem body is returned with a distinct code; no owner/condition detail (no-leak).
Forbidden. The key lacks the brands:write scope (API_TOKEN_SCOPE_DENIED), the account's plan does not include the API, or the account is waiting for its first payment (PAYMENT_REQUIRED): nothing is written until it pays.
Not Found. The brand does not exist or is not this account's (BRAND_NOT_FOUND, the same uniform 404), or the brand has no such line in that section (STATEMENT_NOT_FOUND).
Conflict (RECORD_REVISION_STALE). The section changed since ifRevision: read the strategy again and send its new revision. Or a try run is still making this account's first content (TRY_RUN_IN_PROGRESS): retry when it is done. Nothing was written.
Unprocessable Content. The body is malformed (VALIDATION_ERROR, every offending field in errors[]), a text is too long (STATEMENT_TOO_LONG), the section is full (RECORD_FULL, PILLARS_FULL, …), a hook or card names a buyer, fact or pillar it may not (BRAIN_POINTER_INVALID, …), or a buyer or fact a hook points at is removed (BRAIN_LINE_IN_USE: mute it instead).
Too Many Requests. The per-token sliding window of 60 requests/minute was exceeded. The body is express-rate-limit's DEFAULT plain-text message (NOT the JSON problem+json envelope).
Response Headers
IETF draft-7 rate-limit policy/state (limit, remaining, reset).
Seconds to wait before retrying.
Service Unavailable. Writes are paused for this account (WRITES_PAUSED). Nothing was written: retry after Retry-After.