Scripto docs
View as Markdown

DELETE /api/articles/[id]/notes/[nid]

Remove one note from the Brief by anchor. Backs scripto note rm.

The CLI equivalent is scripto note rm <id> <anchor>.

Removes one note from the Brief. nid is a note anchor.

Endpoint

DELETE https://scripto.codika.io/api/articles/{id}/notes/{nid}

Auth

Authorization: Bearer scripto_…

Response (200)

{ "success": true, "data": { "notes": [ "… the fresh notes map …" ] } }

Errors

HTTPcodeCausenextAction
400invalid-argumentThe anchor is ambiguous.Use a longer anchor.
404not-foundNo such article, or no note matches the anchor.Call GET /notes for current anchors.
401unauthenticatedMissing or invalid key.

curl

curl -sS -X DELETE "https://scripto.codika.io/api/articles/$ID/notes/1a2b3c4d" \
  -H "Authorization: Bearer $SCRIPTO_API_KEY"

Next