Skip to main content
POST
/
cms
/
standing_phases
/
v1
cURL
curl --request POST \
  --url https://api.mottostreaming.com/cms/standing_phases/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "<string>",
  "localized_name": {},
  "classifications": [
    {
      "id": "<string>",
      "localized_name": {},
      "localized_short_name": {},
      "priority": "<string>"
    }
  ],
  "groups": [
    {
      "localized_name": {},
      "entries": [
        {
          "entity_id": "<string>",
          "entity_type": "<string>",
          "stats": {}
        }
      ]
    }
  ]
}'
{
  "standing_phase": {
    "id": "<string>",
    "project_id": "<string>",
    "localized_name": {},
    "classifications": [
      {
        "id": "<string>",
        "localized_name": {},
        "localized_short_name": {},
        "priority": "<string>"
      }
    ],
    "groups": [
      {
        "localized_name": {},
        "entries": [
          {
            "entity_id": "<string>",
            "entity_type": "<string>",
            "stats": {}
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
project_id
string
required
classifications
object[]
required

A list of classifications that are used to rank entities in the standings. A classification is a description of a specific metric or statistic that is used to rank entities in the standings. For example, "points", "wins", "losses", etc.

groups
object[]
required
localized_name
object

A map of localized names for this phase, for end users to see. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.

This can be left empty, e.g. when this is the only phase in the standings.

Response

OK

standing_phase
object
I