User Tools

Site Tools


setscorecard

This is an old revision of the document!


/hcp/setscorecard

Edit an existing scorecard.

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
relnr the id of the golfer (mandatory)
rscnr the id of the scorecard (mandatory). This is the same id you get returned by the newscorecard API call
epenr the id of the player within a competition. if epenr is provided, you can omit chhnr, date, time, ratnr and handicap, because any values provided for these parameters will be overruled by whatever is defined inside the competition.
chhnr the id of the registration in the handicap history.
date mandatory unless epenr is provided. format yyyymmdd. The date will not be changed if the scorecard is connected to an existing flight (flpnr providied with newscorecard) or connected to an existing competition (epenr provided with newscorecard)
time starttime is mandatory unless epenr is provided. formatted as minutes since midnight (10:00 = 600, 12:40 = 760) The time will not be changed if the scorecard is connected to an existing flight (flpnr providied with newscorecard) or connected to an existing competition (epenr provided with newscorecard)
ratnr id of the measured course. mandatory unless epenr is provided. ratnr is a unique identifier for the combination of golfclub, which 9 or 18 holes loops and tee color. Only tee color can be changed with this parameter if the scorecard is connected to an existing flight (flpnr providied with newscorecard) or connected to an existing competition (epenr provided with newscorecard)
markername of the marker
handicapEGA or clubhandicap of the golfer
strokes1number of strokes for hole 1
strokes2number of strokes for hole 2
strokes3number of strokes for hole 3
strokes4number of strokes for hole 4
strokes5number of strokes for hole 5
strokes6number of strokes for hole 6
strokes7number of strokes for hole 7
strokes8number of strokes for hole 8
strokes10number of strokes for hole 10
strokes11number of strokes for hole 11
strokes12number of strokes for hole 12
strokes13number of strokes for hole 13
strokes14number of strokes for hole 14
strokes15number of strokes for hole 15
strokes16number of strokes for hole 16
strokes17number of strokes for hole 17
strokes18number of strokes for hole 18

example: https://backend.ikgagolfen.nl/igg/setscorecard?auth=<your authorisation code>&645347&relnr=123456&rscnr=12345

result:

{
  "setscorecard": [
    {
      "rscnr": 1234
    },
  ]
}
rscnr internal id of the scorecard

Possible errors:

401 Unauthorized
406 Invalid relnr
406 Date not valid
406 Time not valid
406 Invalid course
500 Unexpected result 00021
setscorecard.1386774143.txt.gz · Last modified: 2013/12/11 15:02 (external edit)