{
  "opencollection": "1.0.0",
  "info": {
    "name": "Captivate Analytics Media API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Media",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Media",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.captivate.fm/media/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The media ID (UUID)."
              }
            ]
          },
          "docs": "Get the information for this media ID."
        },
        {
          "info": {
            "name": "Get Show Media",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.captivate.fm/shows/:id/media",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The show ID (UUID)."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get all media for the given show ID. Media cannot be shared across shows, so this is scoped to a single show."
        },
        {
          "info": {
            "name": "Upload Media",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.captivate.fm/shows/:id/media",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The show ID (UUID)."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload a media (audio) file and assign it to the given show ID. Captivate processes the file server-side."
        },
        {
          "info": {
            "name": "Search Show Media",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.captivate.fm/shows/:id/media/search",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The show ID (UUID)."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "The media name search query."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Search a show's media by media name."
        }
      ]
    }
  ],
  "bundled": true
}