Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Create range

RequestPOST /editor/plugins_matchanalysis_pricingpresetrange
Params

presetId Required. ID of preset to create match-rate range for


from Required. Value that range should start at, inclusively


till Required. Value that range should end at, inclusively

IMPORTANT:

  1. Range gaps are allowed, but overlaps are not.
  2. All ranges must stay within 0 - 104 canvas


Response
{
    "success": true,
    "created": "123" // id of newly created range
}

Edit range

RequestPUT /editor/plugins_matchanalysis_pricingpresetrange
Params

rangeId Required. ID of range to be edited


from Required. Value that range should start at, inclusively

till Required. Value that range should end at, inclusively

IMPORTANT:

  1. Range gaps are allowed, but overlaps are not.
  2. All ranges must stay within 0 - 104 canvas.
Response
{
    "success":true,
    "updated": {
        "id": "61",
        "presetId": "2",
        "from": "46",
        "till": "47"
    }
}

Delete range

RequestDELETE /editor/plugins_matchanalysis_pricingpresetrange
ParamsrangeIds Required. Comma-separated list of IDs of ranges to be deleted
Response
{
    "success": true,
    "deleted": [
        "20",
        "61"
    ]
}
  • No labels