Page tree

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

Compare with Current View Page History

Version 1 Next »

Get presets list

RequestGET /editor/plugins_matchanalysis_pricingpreset
Paramsno params needed
Response
{
    "total": 3,
    "rows": [
        {
            "id": "1",
            "customerId": null,
            "name": "Translate5-Standard",
            "unitType": "word",
            "description": "",
            "priceAdjustment": "0.00",
            "isDefault": "0"
        },
        {
            "id": "2",
            "customerId": null,
            "name": "asd",
            "unitType": "word",
            "description": null,
            "priceAdjustment": "0.00",
            "isDefault": "1"
        }
    ],
    ...
}

Clone preset

RequestPOST /editor/plugins_matchanalysis_pricingpreset/clone
Params

presetId Required. ID of preset to be cloned


name Required. Name for the clone, it should be unique across the all presets

customerId Optional. ID of customer. This param should be provided if you want new preset to be customer-specific preset

Response
{
    "success": true,
    "clone": {
        "id": "5",
        "customerId": null,
        "name": "asd1",
        "unitType": "word",
        "description": null,
        "priceAdjustment": "0.00",
        "isDefault": "0"
    }
}

Delete preset

RequestDELETE /editor/plugins_matchanalysis_pricingpreset
ParamspresetId Required ID of preset to be deleted
Response
{
    "success": true
}
  • No labels