Set the upload target of a game session's race results. See race results for an explanation of the file.
Path must contain the ProcessId
of the game session you want to set the upload target for. If you want to test what your game server is sending you, try and set an endpoint with https://webhook.site/
ProcessId: int
The session you want to set the upload target for. Yes, it's also in the path, but it must be in the body of your call too.UploadTarget: string
Endpoint for your webhook. Must be of the format (ftp|http(s))://(username:password)domain(:port)/*.(json|xml).
Once a race ends, your webhook will receive a POST request with an object containing{'file': <filename>.json}
where filename is of the format YYYYMMDDHHmm
.
It will call your endpoint with these headers:
connection: close
expect: 100-continue
content-length: <variable>
host: <your server>
content-type: multipart/form-data; boundary=---------------------<variable>