Edit

[POST] .../v1/tag/edit

Edits price tag template. Use this method to replace the name or template data of an existing price tag template. The method validates id, name and data, checks price tag edit permission 128, updates the template through the persistent layer and returns row_affected. The request body is required, id must be positive, name must be provided and no longer than 150 characters and data must be provided and no longer than 65535 characters. Missing body, invalid id, missing or too long name, missing or too long data, denied permission, missing template and database errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
data String Required Template data in text format.
id Int64 Required Price tag template ID.
name String Required Price tag template name.

Request Example

{
  "id": 3,
  "name": "Shelf label 58mm",
  "data": "\u003Chtml\u003E{{item.name}} - {{item.price}}\u003C/html\u003E"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": []
  }
}