POST update a criteria / subcriteria
Updates an existing criteria or subcriteria.
Resource URL:
https://api.priotice.se/rest/{auth}/criteria/update
POST parameters:
Variable name (case sensitive) |
Required | Variable type | Note |
---|---|---|---|
CriteriaID | Required | integer | Criteria identifier (returned by list criteria method) |
CriteriaTitle | Optional | string | Criteria / subcriteria title (name) |
CriteriaDetails | Optional | string | Criteria / subcriteria description (short description) |
RateAlternatives | Optional | integer possible values: 1 or 0 |
Defines how alternatives are being evaluated towards this criteria / subcriteria: 1 means scale based rating, 0 means pairwise comparison |
Example request
POST https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/criteria/update
Example response:
{ "Status": "success", "Data": { "CriteriaID": 128 } }
CURL example:
curl --data "PrioID=50&CriteriaID=128&CriteriaTitle=CriteriaAB%20Updated" https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/criteria/update