Remove a line from a brand's strategy
DELETE/brands/:brandId/strategy/lines/:lineId
Removes one line, as on the brand page. A buyer or fact any hook points at cannot be removed (mute it, or change or remove the hook first). Answers the section's new revision and its lines. The query takes section and ifRevision and nothing else: a missing, malformed or unknown parameter is a 422 before anything is read.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 503
OK. The line was removed.
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.