---
search:
  tags:
    - system
    - POST
seo:
  description: >-
    Downloads each named pack of the release of this console from the… Reference
    for the POST /api/v1/packs/download endpoint in the TimescaleDB Enterprise
    API.
sidebar:
  label: Download server packages
  badge: POST
title: Download server packages
type: openapi-operation
---
Downloads each named pack of the release of this console from the pack source, checks its sha256 against SHA256SUMS of the release, verifies its signature and loads it. The downloads run one at a time in the background; GET /packs/available shows their state. The console refuses a pack of another release.

`POST /api/v1/packs/download`

**Request body** (`application/json`, required)

- `names` (string[], required) — Pack names of the console release, or the file names of the packs

Request body example:

```json
{
  "names": [
    "string"
  ]
}
```

**Responses**

- `202` — Accepted
- `default` — Error

Response example, 202:

```json
{
  "check": {
    "extensions": {
      "majors": [
        {
          "extensions": [
            {
              "available": true,
              "contrib": true,
              "default_version": "string",
              "description": "string",
              "minor_bound": true,
              "name": "string",
              "needs_restart": true,
              "preload": "string",
              "required": true,
              "sql_name": "string",
              "versions": [
                "string"
              ]
            }
          ],
          "major": "string"
        }
      ]
    },
    "missing": [
      {
        "command": "string",
        "download": {
          "bytes": 0,
          "error": "string",
          "state": "queued",
          "total": 0
        },
        "file": "string",
        "label": "string",
        "name": "string",
        "servers": [
          "string"
        ]
      }
    ],
    "outdated": [
      {
        "arch": "amd64",
        "command": "string",
        "file": "string",
        "label": "string",
        "os": "debian",
        "os_version": "string",
        "release": "string",
        "servers": [
          "string"
        ]
      }
    ],
    "pack_release": "string",
    "refusal": "string",
    "updates": {
      "items": [
        {
          "from": "string",
          "name": "string",
          "to": "string"
        }
      ],
      "release": "string"
    },
    "versions": {
      "default_major": "string",
      "majors": [
        {
          "default_minor": "string",
          "default_timescaledb": "string",
          "major": "string",
          "minors": [
            {
              "minor": "string",
              "timescaledb": [
                "string"
              ]
            }
          ]
        }
      ]
    }
  },
  "checked_at": "2019-08-24T14:15:22Z",
  "error": "string",
  "packs": [
    {
      "arch": "amd64",
      "contents_before_download": true,
      "download": {
        "bytes": 0,
        "error": "string",
        "state": "queued",
        "total": 0
      },
      "name": "string",
      "needed_by": [
        "string"
      ],
      "os": "debian",
      "os_version": "string",
      "release": "string",
      "size_bytes": 0,
      "status": "loaded"
    }
  ],
  "release": "string",
  "source": "string",
  "token_set": true
}
```
