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

Edit Video Settings for Result Sets

Edit the existing 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 omitted, the existing finish line video is left as is.
  • If finish_line_video is included, the result set must already have a finish line video, and its video ID and padding are replaced.
  • Splits omitted from split_videos are left as is.
  • Each split_id in split_videos must be a split in the result set that already has a video, and its video ID and padding are replaced.
  • Use the add method to add new videos, and the delete method to remove them.

Each video requires video_id and play_start_padding_sec. 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 offsets to keep the existing offsets, or include it to replace them. If offsets is included, it must have at least one offset. 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/edit-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.