/pwg/setreservation

With this function you can make a booking for maximum 4 relations.

Function: setreservation

parameters: playingdate, starttime, combinationid, relationid

optional parameters: registrationid, player2id, player3id, player4id

Example: https://backend.prowaregolf.nl/api/setreservation/key/<your authrisation code here>/playingdate/<playingdate>/starttime/<starttime>/combinationid/<combinationid>/relationid/<relationid>

result:

Example without registrationid:
{
 "setreservation":[
  {
   "registrationid":"114",
   "playingdate":"2015-03-16",
   "starttime":"11:00:00",
   "combinationid":"11",
   "players":[
    {
     "relationid":"1199",
     "relationcode":"ONDE 1",
     "relationname":"M. Onderstal",
     "checkedin":"N",
     "cancelreasonid":"0"
    },
    {
     "relationid":"1176",
     "relationcode":"KERK 1",
     "relationname":"E.L. Kerkhoven",
     "checkedin":"N",
     "cancelreasonid":"0"
    }
   ]
  }
 ]
}


Example with registrationid (for change of playingdate, starttime or combinationid):
{
 "setreservation":[
  {
   "registrationid":"114",
   "playingdate":"2015-03-16",
   "starttime":"13:00:00",
   "combinationid":"11",
   "players":[
    {
     "relationid":"1199",
     "relationcode":"ONDE 1",
     "relationname":"M. Onderstal",
     "checkedin":"N",
     "cancelreasonid":"0"
    },
    {
     "relationid":"1176",
     "relationcode":"KERK 1",
     "relationname":"E.L. Kerkhoven",
     "checkedin":"N",
     "cancelreasonid":"0"
    }
   ]
  }
 ]
}