IMPORTANT:
Create range |
|---|
| Request | POST /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 | - Range gaps are allowed, but overlaps are not.
- All ranges must stay within 0 - 104 canvas
|
| till Required. Value that range should end at, inclusively |
| Code Block |
|---|
| language | js |
|---|
| title | Response |
|---|
| collapse | true |
|---|
| {
"success": true,
"created": "123" // id of newly created range
} |
|
Edit range |
|---|
| Request | PUT /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
- Range gaps are allowed, but overlaps are not.
- All ranges must stay within 0 - 104 canvas
|
| till Required. Value that range should end at, inclusively |
| Code Block |
|---|
| language | js |
|---|
| title | Response |
|---|
| collapse | true |
|---|
| {
"success":true,
"updated": {
"id": "61",
"presetId": "2",
"from": "46",
"till": "47"
}
} |
|
Delete range |
|---|
| Request | DELETE /editor/plugins_matchanalysis_pricingpresetrange |
| Params | rangeIds Required. Comma-separated list of IDs of ranges to be deleted |
| Code Block |
|---|
| language | js |
|---|
| title | Response |
|---|
| collapse | true |
|---|
| {
"success": true,
"deleted": [
"20",
"61"
]
} |
|