This post endpoint remove the Label from the transaction matching the IDs passed in url
The label's ID
The transaction's ID
DELETE /transactions/{transaction_id}/labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true
}
This method returns the transaction's labels.
The transaction's ID
GET /transactions/{transaction_id}/labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
[
{
"created_by": 42,
"created_on": "2025-06-20T10:11:38.097Z",
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM",
"updated_by": 42,
"updated_on": "2023-02-06T02:48:59+00:00"
}
]
This post endpoint set the Label matching the ID passed in the payload to the Transaction matching the ID passed in the url
The transaction's ID
ID of the label to add to the resource
42
POST /transactions/{transaction_id}/labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"label_id": 42
}
{
"success": true
}