Hole Score Update

This packet will be sent whenever it is apparent that the score for a particular hole is incorrect, after scoring for that hole has finished. This can happen because of manual error by the scorer or for many other reasons.

This packet will indicate which hole has the issue, and what the score should have been for that hole.

Correction Object

Field Name

Type

Description

seqNum

int

The sequence number of the packet. Always starts at 1, increments in 1

timestamp

date

The timestamp of the event, in UTC

eventElementType

string

The type of event, in this case Correction

corrections

map

contains all the parts of the packet that have been changed, and their new values, i.e the new score values in this instance

eventCorrectedIdentifier Object

This contains information unique to the event that is being corrected – use this information to reference the previous packet so you know what packet and what data to update.

Field Name

Type

Description

hole

int

The hole in which the event took place that is being corrected

playerId

int

The player ID of the player who did the event that is being corrected

Sample Event Packet

In this example an Approximate Lie packet has been corrected – The distance to pin and shot distance are the details which have been updated.

{
	"eventElementType": "HoleScoreUpdate",
	"seqNum": 234,
	"timestamp": "2018-09-17T15:07:27.456Z",
	"eventCorrectedIdentifier": {
		"holeNo": 5,
		"playerId": "123",
	},
	"corrections": {
		"score": {
			"currentHoleStrokes": 2,
			"overallScoreToPar": "+5",
			"currentRoundScoreToPar": "+5"
		}
	}
}

Last updated