{
  "openapi": "3.1.0",
  "info": {
    "title": "Expedy Medias API",
    "version": "v2",
    "description": "Reference for the medias endpoints of the Expedy API. Generated from https://docs.expedy.io.",
    "contact": {
      "name": "Expedy",
      "url": "https://docs.expedy.io"
    }
  },
  "servers": [
    {
      "url": "https://www.expedy.fr/api/v2",
      "description": "Production"
    }
  ],
  "paths": {
    "/medias/{media_id}/play/{device_uid}/{hdmi_port}/{loop}": {
      "get": {
        "summary": "Play media",
        "description": "This endpoint allows you to play a specific media file on a specific device, on one or both of its hdmi ports.\n\nValid hdmi_port arguments are : \"1\", \"2\" or \"sync\" (play on both hdmi outputs) \n\nValid loop arguments are : \"0\" (no loop) or \"1\" (infinite loop)",
        "operationId": "get_medias_Bymedia_id_play_Bydevice_uid_Byhdmi_port_Byloop",
        "tags": [
          "medias"
        ],
        "parameters": [
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device_uid",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device_uid",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hdmi_port",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "loop",
            "in": "path",
            "required": true,
            "description": "",
            "schema": {
              "type": "string"
            }
          }
        ],
        "externalDocs": {
          "url": "https://docs.expedy.io/en/digital-signage/medias/get-medias-media-id-play-device-uid-hdmi-port-loop",
          "description": "Full documentation for Play media"
        },
        "responses": {
          "200": {
            "description": "OK\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `last_ping` | `number` | No |  (ex: `1641509604`) |\n\n**Response Example:**\n\n```json\n{\n  \"last_ping\": 1641509604\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "last_ping": {
                      "type": "number",
                      "example": "1641509604"
                    }
                  }
                },
                "example": {
                  "last_ping": 1641509604
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "API key issued by Expedy. Contact support to obtain one."
      }
    }
  },
  "tags": [
    {
      "name": "medias"
    }
  ]
}