{
  "opencollection": "1.0.0",
  "info": {
    "name": "RunSignup Corrals Participants API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://runsignup.com/OAuth/Authorize",
      "accessTokenUrl": "https://runsignup.com/OAuth/Token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Participants",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Race Participants",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://runsignup.com/Rest/race/:race_id/participants",
            "params": [
              {
                "name": "race_id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the race"
              },
              {
                "name": "format",
                "value": "",
                "type": "query"
              },
              {
                "name": "event_id",
                "value": "",
                "type": "query",
                "description": "Filter by specific event ID within the race"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "results_per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "include_transfers",
                "value": "",
                "type": "query",
                "description": "Include transferred registrations (T/F)"
              },
              {
                "name": "since_datetime",
                "value": "",
                "type": "query",
                "description": "Only return registrations created or modified after this datetime"
              }
            ]
          },
          "docs": "Returns a list of registered participants for the specified race. Can be filtered by event, registration status, and other criteria. Includes registration ID, name, contact info, bib, chip, and custom question responses."
        },
        {
          "info": {
            "name": "Add or Edit Race Participants",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://runsignup.com/Rest/race/:race_id/participants",
            "params": [
              {
                "name": "race_id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the race"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds new participants or edits existing participant registrations for a race. Used by timing companies and race management systems to sync registration data."
        },
        {
          "info": {
            "name": "Delete Race Participants",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://runsignup.com/Rest/race/:race_id/delete-participants",
            "params": [
              {
                "name": "race_id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the race"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes specified participant registrations from a race. Requires race director or admin access."
        },
        {
          "info": {
            "name": "Get Bib and Chip Assignments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://runsignup.com/Rest/race/:race_id/get-bib-chip",
            "params": [
              {
                "name": "race_id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the race"
              },
              {
                "name": "event_id",
                "value": "",
                "type": "query",
                "description": "The specific event ID to get assignments for"
              }
            ]
          },
          "docs": "Returns bib number and chip/RFID tag assignments for participants in a race event. Used by timing companies to retrieve tag-to-bib mappings."
        }
      ]
    }
  ],
  "bundled": true
}