Update a Regatta
Various attributes about the regatta can be updated such as the date, name, location, etc.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
Data
JSON
A structure of type Regatta which contains the updated regatta information.
Returns
JSON
The updated Regatta information.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update an Event
Various characteristics about an event can be updated such as the event name, final start time, etc.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}/events/{EventId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
EventId
The RegattaCentral ID of the event in which the entries are being created..
Data
JSON
A structure of type Event.
Returns
JSON
The updated Event structure.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/events/11',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update an Entry
Various characteristics about an entry can be changed including the lineup.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}/entries/{EntryId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
EntryId
The RegattaCentral ID of the entry which you are updating.
Data
JSON
A structure of type Entry.
Returns
JSON
The updated Entry.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/entries/123',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update a Race
Various characteristics of a race can be updated such as the start time, length and status.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}/races/{RaceId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
RaceId
The RegattaCentral ID of the race in which the lanes are being created/assigned..
Data
JSON
A structure of type Race. May contain more than one event.
Returns
JSON
An updated Race structure.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/races/123456',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update a Lane/Bow
Update the information regarding a lane within a specific race. The associated entry, handicap, status and the results for this lane may be modified.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}/races/{RaceId}/lanes/{LaneId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
EventId
The RegattaCentral ID of the event in which the entries are being created..
LaneId
The RegattaCentral ID of the lane that you are modifying.
Data
JSON
A structure of type Events. May contain more than one event.
Returns
JSON
An Events structure, including updated data - specifically the event_id
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/races/123456/lanes/5',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update a Guaranteed Entry Code for an Entry
Update the information associated with a specific Guaranteed Entry Code.
URL: https://api.regattacentral.com/v4.0/regattas/{RegattaId}/entryCodes/{Code}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
Code
The existing Guaranteed Entry Code which will be updated.
Data
JSON
A structure of type GuaranteedBoat which contains the new Guaranteed Entry information.
Returns
JSON
A structure of type GuaranteedBoat which contains the updated Guaranteed Entry information.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/entryCodes/ABC-123',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON
Update a Guaranteed Entry Code for an Organization
Update the information contained in a Guaranteed Entry Code for an Organization.
URL: https://api.regattacentral.com/v4.0/guaranteedEntries/{RegattaId}/organizations/{ClubId}
Security This endpoint requires a valid Oauth2 token for authentication and staff access to the regatta.
PUT This is a PUT request.
Parameters
RegattaId
The RegattaCentral ID of the regatta that you are uploading data to.
ClubId
The RegattaCentral ID of the club whos' guaranteed entry is being updated.
Data
JSON
A structure of type GuaranteedOrg which contains the details about this guaranteed entry record.
Returns
JSON
The Guaranteed Entry information for this organization.
Code: JavaScript + jQuery
$.ajax({
type: "POST",
url: 'https://api.regattacentral.com/v4.0/regattas/3939/guaranteedEntries/3939/organizations/2810',
data : json-data,
headers: {"Authorization": "hex-authorization-code-goes-here",
"Accept": "application/json",
"Content-Type" : "application/json"},
success: function (data) {
// Process and Display Data
},
error: function () {
alert('Error processing request.');
}
});
Results: JSON