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
| HTTP | code | Cause | nextAction |
|---|---|---|---|
| 400 | invalid-argument | The anchor is ambiguous. | Use a longer anchor. |
| 404 | not-found | No such article, or no note matches the anchor. | Call GET /notes for current anchors. |
| 401 | unauthenticated | Missing or invalid key. | — |
curl
curl -sS -X DELETE "https://scripto.codika.io/api/articles/$ID/notes/1a2b3c4d" \
-H "Authorization: Bearer $SCRIPTO_API_KEY" Next
- The Brief — the concept.