Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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


Code Block
languagejs
titleResponse
collapsetrue
{
    "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.


Code Block
languagejs
titleResponse
collapsetrue
{
    "success":true,
    "updated": {
        "id": "61",
        "presetId": "2",
        "from": "46",
        "till": "47"
    }
}


...