Skip to main content
POST
/
integration
/
spiideo
/
v1
/
team_type_mappings
cURL
curl --request POST \
  --url https://api.mottostreaming.com/integration/spiideo/v1/team_type_mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "motto_entity_type": "<string>",
  "sport_field": "<string>",
  "abbreviation_field": "<string>"
}'
{
  "team_type_mapping": {
    "motto_entity_type": "<string>",
    "sport_field": "<string>",
    "abbreviation_field": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project_id
string

Body

application/json

SpiideoTeamTypeMapping maps a Motto entity type to Spiideo team properties.

motto_entity_type
string
required

The Motto entity type this mapping applies to.

sport_field
string

Field name on the Motto entity type that maps to the sport. This has to be an entity reference OR if it matches exactly the Spiideo sport enum values, a string field, E.g. fields.sport (which may be an entity reference) E.g. fields.sport_type (which may be resolve to a string field with values like "football", "basketball", etc.) E.g. football (a hard-coded string field, instead of a resolvable field keypath).

If not set, the default Spiideo sport will be used, as it's configured on the SpiideoIntegration.

abbreviation_field
string

Field name on the Motto entity type that maps to the abbreviation. This has to be a string field that contains the abbreviated name. E.g. fields.abbreviation or fields.short_name

If not set, an abbreviation will be generated based on the name of the team.

Response

OK

team_type_mapping
object

SpiideoTeamTypeMapping maps a Motto entity type to Spiideo team properties.

I