Scripto docs
View as Markdown

PATCH /api/articles/[id]/brief

Set or clear the premise — the prose half of the Brief. The typed notes are managed through the notes endpoints. Backs scripto brief --premise.

The CLI equivalent is scripto brief <id> --premise "…" (or --premise-file, --premise-stdin, --clear-premise).

Sets or clears the premise — the prose half of the Brief. The typed notes are managed through the notes endpoints; this route owns only the premise.

Endpoint

PATCH https://scripto.codika.io/api/articles/{id}/brief

Auth

Authorization: Bearer scripto_…

Request

FieldTypeMeaning
premisestring | nullThe premise paragraph. null (or an empty string) clears it.
{ "premise": "A go-to-market piece: the install is the pitch." }

Response (200)

{ "success": true, "data": { "premise": "A go-to-market piece: the install is the pitch." } }

Errors

HTTPcodeCause
400invalid-argumentpremise is not a string or null.
401unauthenticatedMissing or invalid key.
404not-foundNo such article, or you don’t own it.

curl

curl -sS -X PATCH "https://scripto.codika.io/api/articles/$ID/brief" \
  -H "Authorization: Bearer $SCRIPTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"premise":"A go-to-market piece: the install is the pitch."}'

Next