Update the label matching the given ID

Set the new properties to the label matching the given ID

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

the new attributes for the label

required
object (LabelInfo)
name
required
string

label's name

Responses
200

The new version of the label

400

Invalid data

404

The label does not exist

put/labels/{label_id}
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.