This post endpoint remove the Label from the account matching the IDs passed in url
The account's ID
The label's ID
DELETE /accounts/{account_id}/labels/{label_id} HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true
}
This method returns the account's labels.
The account's ID
GET /accounts/{account_id}/labels HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"info": {
"color": "#fe3423",
"description": "Flag resources as potentially harmfull"
},
"name": "SPAM"
}
]
This post endpoint set the Label matching the ID passed in the payload to the Account matching the ID passed in the url
The account's ID
ID of the label to add to the resource
42
POST /accounts/{account_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
}