Returns a list of match staff/officials that the user has access to.
GET /v1/{sport}/leagues/{leagueId}/staff
GET /v1/{sport}/competition/{competitionId}/staff
GET /v1/{sport}/matches/{matchId}/staff
GET /v1/{sport}/matches/{matchId}/persons/{personId}/staff
GET /v1/{sport}/matches/{matchId}/teams/{teamId}/staff
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
leagueId |
integer |
Unique identifier for the league the person is in. |
Optional Parameters | ||
competitionId |
integer |
Unique identifier for a competition |
matchId |
integer |
Unique identifier for a match |
teamId |
integer |
Unique identifier for a team |
personId |
integer |
Unique identifier for a person |
staffType |
string |
Type of staff role defined in Match Staff Resource |
useExternalForLeague |
integer |
If this value is set to the leagueId for the league, then the URL parameters matchId , personId , teamId and competitionId will instead refer to the externalId fields of the respective entities in that league. |
Do not supply a request body with this method.
If successful this method returns a list of Match Staff resources.
Get the detail about a person performing a role in a specific match.
GET /v1/{sport}/matches/{matchId}/staff/{staffType}/persons/{personId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
Unique identifier for a match |
personId |
integer |
Unique identifier for a person |
staffType |
string |
Type of staff role defined in Match Staff Resource |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the league, then the URL parameters matchId and personId will instead refer to the externalId fields of the respective entities in that league. |
Do not supply a request body with this method.
If successful this method returns a Match Staff resource.
Create detail about a specific person's relation to a particular match. Both the PUT and POST verbs are accepted as the system will handle any creation/editing logic.
Note: Only the fields being sent for the resource will be returned. For a full list of fields, do a detail call as above.
POST /v1/{sport}/leagues/{leagueId}/staff
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
leagueId |
integer |
Unique identifier for the league the matches are in |
Optional Parameters | ||
minimumResponse |
integer |
If this value is set to 1 then the response resource will only contain contain minimal identifying fields. |
bulk |
integer |
Create multiple records. |
useExternalForLeague |
integer |
If this value is set to the leagueId, then the content of the request body is interpreted differently. See the Request Body section for more information. |
In the request body supply a Match Staff resource.
If the bulk
parameter is specified a list of resources is expected.
If the useExternalForLeague
parameter is specified, then the following fields in the resource will be interpreted as the externalId
of the specific entity instead of the unique identifier.
matchId
teamId
personId
If successful this method returns a Match Staff resource. If the bulk
parameter is specified it will return a list of resources. Any errors returned are against the specific resource.
Delete an existing match staff record
DELETE /v1/{sport}/matches/{matchId}/staff
DELETE /v1/{sport}/matches/{matchId}/staff/{staffType}/persons/{personId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
Unique identifier for a match |
Optional Parameters | ||
personId |
integer |
Unique identifier for a person |
staffType |
string |
Type of staff role defined in Match Staff Resource |
useExternalForLeague |
integer |
If this value is set to the leagueId, then the URL parameters matchId and personId will instead refer to the externalId fields of the respective entities in that league. |
Do not supply a request body with this method.
Successful this method returns SUCCESS.