Create a label

Create a label than can be attached to Account or Transaction

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
Request Body schema: application/json

attributes of the label to create

required
object (LabelInfo)
name
required
string

label's name

Responses
200

The new label

400

Invalid label attributes

post/labels
Request samples
application/json
{
  • "info": {
    },
  • "name": "SPAM"
}
Response samples
application/json
{
  • "created_by": 42,
  • "created_on": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "info": {
    },
  • "name": "SPAM",
  • "updated_by": 42,
  • "updated_on": "2023-02-06T02:48:59+00:00"
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.