POST update an alternative

Updates an existing alternative. Fields that can be updated are the title and the description (AlternativeTitle, AlternativeDetails)

Resource URL:

https://api.priotice.se/rest/{auth}/alternative/update

POST parameters:

Variable name
(case sensitive)
Required Variable type Note
AlternativeID Required integer Alternative identifier (returned by list alternatives method)
AlternativeTitle Optional string Alternative title (name)
AlternativeDetails Optional string Alternative description (short description)
At least 2 POST parameters are required, AlternativeID and one of the others. Optional parameters that are not being sent are not being updated.

Example request

POST https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/alternative/update

Example response:

{ "Status": "success", "Data": { "AlternativeID": 107 } }

CURL example:

curl --data "AlternativeID=107&AlternativeTitle=AltB%20Updated" https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/alternative/update