POST
/
ott
/
slugs
/
v1
cURL
curl --request POST \
  --url https://api.mottostreaming.com/ott/slugs/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "slug": "<string>",
  "project_id": "<string>",
  "platform_id": "<string>",
  "path": "<string>",
  "is_canonical": true,
  "visibility": "VISIBILITY_UNSPECIFIED"
}'
{
  "slug": {
    "slug": "<string>",
    "project_id": "<string>",
    "platform_id": "<string>",
    "path": "<string>",
    "is_canonical": true,
    "visibility": "VISIBILITY_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Slugs can be created to generate a better looking URL for your pages, leading to better SEO and user experience. For example, for an entity page that requires two variables, instead of using https://example.com/en-US/entity/competition/HiKTtRZYdyGU/2024 you can define a slug for https://example.com/en-US/la-liga-2024. The slug would be /la-liga-2024 and the path would be /entity/competition/HiKTtRZYdyGU/2024 (excluding the language segment, including the leading slash).

Response

200
application/json

OK

The response is of type object.