POST create new alternative
Creates a alternative for the specified prioritization. The prioritization is specified by the identifier which is the prioritization ID.
Constraints:
- Minimum number of alternatives per prioritization: 2
- Maximum number of alternatives per prioritization: 10
Resource URL:
https://api.priotice.se/rest/{auth}/alternative/create
POST parameters:
Variable name (case sensitive) |
Required | Variable type | Note |
---|---|---|---|
PrioID | Required | integer | Prioritization identifier (PrioID value returned by prioritization details method) |
AlternativeTitle | Required | string | Alternative title |
AlternativeDetails | Optional | string | An optional short description for the alternative |
Data returned:
If will return a success status along with the AlternativeID of the alternative that was inserted if the operation was successful. Else, it will return an error code.
Example request
POST https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/alternative/create
Example response:
{ "Status": "success", "Data": { "AlternativeID": 107 } }
CURL example:
curl --data "PrioID=50&AlternativeTitle=AltA" https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/alternative/create