Add a Label to the Account matching the ID

This post endpoint set the Label matching the ID passed in the payload to the Account 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
account_id
required
integer

The account's ID

Request Body schema: application/json

the Label's ID to attached to the Account

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

Account or Label does not exist

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