Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Query Parameters

project_id
string
required

Body

application/json

SpiideoPlayerTypeMapping maps a Motto entity type to Spiideo player properties.

motto_entity_type
string
required

The Motto entity type this mapping applies to.

position_field
string
required

Field name on the Motto entity type that maps to the position(s) of the player. This has to be an entity reference OR a string. It may contain multiple values. E.g. fields.positions.

position_field_gk_values
string[]

The values that the position_field may resolve to that indicate that this player is a goalkeeper. E.g. if fields.positions is a string field on the Motto entity type, this may be ["gk","goalkeeper"]. E.g. if fields.positions is an entity reference on the Motto entity type, this may be ["f843fladfj94alfda9"], where the id is of an entity of some Motto entity type that represents player positions (with this one representing the goalkeeper entity).

birth_date_field
string

Field name on the Motto entity type that maps to the birth date of the player. This has to be a string field holding either a date (yyyy-mm-dd) or a full timestamp (e.g. 2007-08-13T00:00:00Z), of which only the date part is used. E.g. fields.birth_date

If not set, no birth date will be set on the Spiideo player.

nationality_field
string

Field name on the Motto entity type that maps to the nationality of the player. This has to be a string field holding an ISO 3166-1 country code, either alpha-2 (e.g. SE) or alpha-3 (e.g. SWE). E.g. fields.nationality

If not set, no nationality will be set on the Spiideo player.

Response

OK

player_type_mapping
object

SpiideoPlayerTypeMapping maps a Motto entity type to Spiideo player properties.