1. RunSignup
  2. API
  3. Methods
  4. Add Video Settings for Result Sets

Add Video Settings for Result Sets

Add a YouTube finish line video and split videos for a result set.

  • The request must include finish_line_video, split_videos, or both.
  • If finish_line_video is included, the result set must not already have a finish line video.
  • Each split_id in split_videos must be a split in the result set that does not already have a video.
  • Use the edit method to change existing videos, and the delete method to remove them.

Each video requires video_id, play_start_padding_sec, and at least one offset. The play_start_padding_sec field is the number of seconds before the finish or split to start playing the video, and must be at least 0. Each offset maps a range of clock times to a time in the video. Leave out clock_time_end_sec or set it to null for a range with no end. Offsets cannot overlap.

Request Format

{
    "finish_line_video": {
        "video_id": "itpHfrH0pFg",
        "play_start_padding_sec": 5,
        "offsets": [
            {
                "clock_time_start_sec": 3900,
                "clock_time_end_sec": 4505,
                "video_offset_sec": 10
            },
            {
                "clock_time_start_sec": 4505,
                "clock_time_end_sec": null,
                "video_offset_sec": 900
            }
        ]
    },
    "split_videos": [
        {
            "split_id": 12345,
            "video_id": "i23HfrH0pF1",
            "play_start_padding_sec": 5,
            "offsets": [
                {
                    "clock_time_start_sec": 1800,
                    "clock_time_end_sec": 2400,
                    "video_offset_sec": 5
                }
            ]
        }
    ]
}

URL

https://api.runsignup.com/rest/v2/results/add-result-set-video-settings.json

HTTP Method

POST

API Caller Identification

Parameter HTTP Method Default Description Datatype
rsu_api_reg GET API caller token. If used, you must send the API caller password in an HTTP header named X-RSU-API-REG-SECRET. string
X-RSU-API-REG-SECRET HTTP Header API caller password. string

Standard Parameters

Parameter HTTP Method Default Description Datatype
api_key GET API Key string
api_secret GET API Secret string
rsu_api_key GET API v2 key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. string
sp_api_key GET Super partner API key. If used, you must send the API secret in an HTTP header named X-RSU-API-SECRET. string
X-RSU-API-SECRET HTTP Header API v2 or super partner secret. string
Authorization HTTP Header Authorization Header. If using OAuth 2.0, fill this in with `Bearer <token>`. string
format GET xml Format of response. The default if not sent is `xml`, but `json` is preferred. format

Parameters

Parameter HTTP Method Default Description Datatype
race_id
Required
GET ID of race. uint
event_id
Required
GET ID of the event. uint
individual_result_set_id
Required
GET ID of the result set. uint
request
Required
POST JSON of video settings. string

If you continue to use this site, you consent to use all cookies. We use cookies to offer you a better browsing experience. Read how we use cookies and how you can control them by visiting our Privacy Policy.

If you continue to use this site, you consent to use all cookies.