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).

Response

OK

player_type_mapping
object

SpiideoPlayerTypeMapping maps a Motto entity type to Spiideo player properties.