Skip to main content
POST
/
downloadQueue
PlexGO
package main

import(
	"context"
	"github.com/LukeHagar/plexgo"
	"log"
)

func main() {
    ctx := context.Background()

    s := plexgo.New(
        plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    res, err := s.DownloadQueue.CreateDownloadQueue(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}
{
  "MediaContainer": {
    "identifier": "<string>",
    "offset": 123,
    "size": 123,
    "totalSize": 123,
    "DownloadQueue": [
      {
        "id": 123,
        "itemCount": 123,
        "status": "deciding"
      }
    ]
  }
}

Authorizations

X-Plex-Token
string
header
required

Response

200 - application/json
MediaContainer
object