Notes
Detach a record from a note
Detaches one record from a note. The response hands back the attachment as it was, so you can log exactly what was removed.
Unlike attaching, this is not idempotent: the attachment is gone for good, so a repeat call returns 404. A retry after a timeout will hit that rather than succeeding twice.
The note itself is untouched. Detaching its last record leaves it in the workspace as a note without records, rather than deleting it.
Detaching takes the same permission as editing the note, so the person who wrote a note can always detach from it.
delete/public-api/v1/notes/{note_id}/links/{id}
Request
- Base URLhttps://app.hellobonsai.com
- URLhttps://app.hellobonsai.com/public-api/v1/notes/{note_id}/links/{id}
- Auth
- OAuth 2Authorization code: https://app.hellobonsai.com/oauth/authorizeToken URL: https://app.hellobonsai.com/oauth/token
- or HTTP bearer
Response
The record was detached. The attachment as it was is in data.
Example response
{
"data": {
"id": 907,
"record_id": 42,
"record_type": "company"
},
"meta": {
"request_id": "b1f0d2c4-7a9e-4c3b-8d5f-1e2a3b4c5d6e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.