Add a Label to the Transaction matching the ID

This post endpoint set the Label matching the ID passed in the payload to the Transaction matching the ID passed in the url

Security(Ledger_API_Key and Ledger_API_User) or Ledger_API_Key and Ledger_API_User and Ledger_Store_Auth_Token) or Ledger_API_User or Ledger_API_User and Ledger_Store_Auth_Token)
Request
path Parameters
transaction_id
required
integer

The transaction's ID

Request Body schema: application/json

the Label's ID to attached to the Transaction

label_id
required
integer

ID of the label to add to the resource

Responses
200

Whether or not the Label has been successfully attached

404

Transaction or Label does not exist

post/transactions/{transaction_id}/labels
Request samples
application/json
{
  • "label_id": 42
}
Response samples
application/json
{
  • "success": true
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.