Assign race divisions to registrants. Only divisions without auto-select criteria can be assigned. The divisions posted will completely replace previous divisions for the registrant. To remove all divisions for a registrant, send the registration id with no divisions.
For JSON requests, the request should look like the example below.
xxxxxxxxxx
{
"assignments": [
{
"registration_id": 123,
"race_division_ids": [ 1, 2 ]
},
{
"registration_id": 456,
"race_division_ids": [ 2 ]
}
]
}
For XML requests, the request should look like the example below.
xxxxxxxxxx
<request>
<assignment>
<registration_id>123</registration_id>
<race_division_id>1</race_division_id>
<race_division_id>2</race_division_id>
</assignment>
<assignment>
<registration_id>456</registration_id>
<race_division_id>2</race_division_id>
</assignment>
</request>
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
api_key |
GET | API Key | string |
|
api_secret |
GET | API Secret | string |
|
tmp_key |
GET | Temporary API Key from login API call. This should NOT be used in combination with API Key. | string |
|
tmp_secret |
GET | Temporary API Secret from login API call. This should NOT be used in combination with 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 |
|
format |
GET | xml | Format of response. The default if not sent is `xml`, but `json` is preferred. | format |
Parameter | HTTP Method | Default | Description | Datatype |
---|---|---|---|---|
race_id Required |
POST | ID of race. | uint |
|
event_id Required |
POST | ID of event. | uint |
|
request_format |
POST | xml | Format of request. The default if not sent is `xml`, but `json` is preferred. | format |
request Required |
POST | Request in proper format. | string |