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 |
---|
Request | GET /editor/plugins_matchanalysis_pricingpreset |
Params | no params needed |
{
"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 |
---|
Request | POST /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 |
{
"success": true,
"clone": {
"id": "5",
"customerId": null,
"name": "asd1",
"unitType": "word",
"description": null,
"priceAdjustment": "0.00",
"isDefault": "0"
}
}
|
Delete preset |
---|
Request | DELETE /editor/plugins_matchanalysis_pricingpreset |
Params | presetId Required ID of preset to be deleted |
|