Request Body
| Parameter | Type | Description |
|---|---|---|
sha | Required | Commit SHA to remove the note from |
action | Required | Set to "remove" to delete the note |
author | Optional | Object with name and email for the notes commit |
expected_ref_sha | Optional | Expected notes ref SHA for optimistic concurrency control |
JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
Response Fields
| Field | Type | Description |
|---|---|---|
sha | String | The commit SHA the note was attached to |
target_ref | String | The notes reference (refs/notes/commits) |
base_commit | Optional | Previous notes ref commit SHA |
new_ref_sha | String | New notes ref SHA after the operation |
result | Object | Operation result with success, status, and optional message |
Error Responses
| Status | Description |
|---|---|
404 Not Found | Note doesn’t exist for the specified commit |
409 Conflict | expected_ref_sha doesn’t match current notes ref |
401 Unauthorized | Invalid JWT or missing git:write scope |
400 Bad Request | Missing required fields |