Page tree

Versions Compared

Key

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

Table of Contents

IMPORTANT:

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

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

    till Required. Value that range should end at, inclusively

    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:
    • INFO
      1. Range gaps are allowed, but overlaps are not.
      2. All ranges must stay within 0 - 104 canvas

    till Required. Value that range should end at, inclusively


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


    Code Block
    languagejs
    titleResponse
    collapsetrue
    {
        "success": true,
        "deleted": [
            "20",
            "61"
        ]
    }