---
search:
  tags:
    - sites
    - POST
seo:
  description: >-
    Copies the regular files below path in the sandbox, as the sandbox user (or…
    Reference for the POST /v1/sites/{site}/versions endpoint in the pols.so
    API.
sidebar:
  label: Publish a sandbox directory as the site's new live version
  badge: POST
title: Publish a sandbox directory as the site's new live version
type: openapi-operation
---
Copies the regular files below `path` in the sandbox, as the
sandbox user (or `user`), into a new version and makes it live. A
sandbox in standby is woken; a stopped one must be resumed first
(409 `conflict`). Symbolic links, devices, and files and
directories whose names start with a dot (except `.well-known/`)
are left out and counted in `skipped`. A version holds at most
10,000 files and 100 MiB, and the org's sites together at most
2 GiB, by default (403 `quota_exceeded`); a taken-down site cannot be published to (403
`forbidden`); a directory that does not
exist or cannot be read is 400 `bad_request`. An org publishes at
most 30 versions an hour (429 `rate_limited`).

`POST /v1/sites/{site}/versions`
