Skip to main content
POST
/
integration
/
spiideo
/
v1
/
entity_mappings
cURL
curl --request POST \
  --url https://api.mottostreaming.com/integration/spiideo/v1/entity_mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "motto_entity_id": "<string>",
  "motto_entity_type": "<string>",
  "spiideo_object_id": "<string>",
  "spiideo_object_type": "SPIIDEO_OBJECT_TYPE_UNSPECIFIED",
  "description": "<string>"
}'
{
  "entity_mapping": {
    "motto_entity_id": "<string>",
    "motto_entity_type": "<string>",
    "spiideo_object_id": "<string>",
    "spiideo_object_type": "SPIIDEO_OBJECT_TYPE_UNSPECIFIED",
    "description": "<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

Maps a Motto entity to a Spiideo object. Such a mapping must exist for any entity that is to be used in Spiideo-related operations, otherwise no automatic API integration can be performed when creating Spiideo games.

motto_entity_id
string
required

The ID of the Motto entity.

motto_entity_type
string
required

The type of the Motto entity.

spiideo_object_id
string
required

The ID of the Spiideo object. In the case of sports, this is the enum value of the sport in Spiideo, e.g. "football" or "basketball".

spiideo_object_type
enum<string>
required

The type of the Spiideo object.

Available options:
SPIIDEO_OBJECT_TYPE_UNSPECIFIED,
SPIIDEO_OBJECT_TYPE_TEAM,
SPIIDEO_OBJECT_TYPE_SPORT,
SPIIDEO_OBJECT_TYPE_PLAYER,
SPIIDEO_OBJECT_TYPE_SCENE
description
string

A description of the mapping. This is for informational purposes only and does not affect the functionality. This can be the name of the team or player in Motto, or any other relevant information that helps identify the mapping.

Response

OK

entity_mapping
object

Maps a Motto entity to a Spiideo object. Such a mapping must exist for any entity that is to be used in Spiideo-related operations, otherwise no automatic API integration can be performed when creating Spiideo games.

I