Team

getConference

Returns the conference for a team in a specified season.

Required arguments

organization_id , team_id and season

Request

GET

https://api.srating.io/v1/team/getConference?team_id=7860d20d-8549-11ed-bf01-5296e1552828&season=2023&organization_id=f1c37c98-3b4c-11ef-94bc-2a93761010b8

POST

fetch('https://api.srating.io/v1', {
  'method': 'POST',
  'headers': {
    'Content-Type': 'application/json',
    'X-API-KEY': 'YOUR_API_KEY',
  },
  'body': JSON.stringify({
    'class': 'team',
    'function': 'getConference',
    'arguments': {
      'organization_id': 'f1c37c98-3b4c-11ef-94bc-2a93761010b8',
      'team_id': '7860d20d-8549-11ed-bf01-5296e1552828',
      'season': 2023,
    }
  }),
}).then(response => {
  return response.json();
}).then(json => {
  console.log(json);
  return json;
}).catch(error => {
  console.log(error);
});

Response

{
  "conference_id": "ab24d906-1095-11ef-9686-72fab666226a",
  "code": "CUSA",
  "name": "USA",
  "guid": "4c1dfc0f-da3a-4aae-a99a-ec12f878f270",
  "inactive": 0,
  "deleted": 0
}

On this page