---
title: "POST /sites/{site_id}/deploys"
method: POST
path: "/sites/{site_id}/deploys"
tags: ["deploy"]
---

# POST /sites/{site_id}/deploys

`POST /sites/{site_id}/deploys`

## Query parameters

- `title` string

## Request body

- DeployFiles — Deploy files can be provided in two ways: 1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR 2. As a zip file using one of these methods: - Set Content-Type to 'application/zip' and send the zip file as the raw request body - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'
  - `files` object — A hash mapping file paths to SHA1 digests of the file contents.
  - `zip` string, binary — A zip file containing the site files to deploy. Alternative to 'files'. To use this field, set Content-Type to 'application/json' and include the zip content here. Alternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).
  - `draft` boolean
  - `async` boolean
  - `functions` object
  - `function_schedules` FunctionSchedule[]
    - `name` string
    - `cron` string
  - `functions_config` object
  - `branch` string
  - `framework` string
  - `framework_version` string

## Response `200`

OK

- Deploy
  - `id` string
  - `site_id` string
  - `user_id` string
  - `build_id` string
  - `state` string
  - `name` string
  - `url` string
  - `ssl_url` string
  - `admin_url` string
  - `deploy_url` string
  - `deploy_ssl_url` string
  - `screenshot_url` string
  - `review_id` number
  - `draft` boolean
  - `required` string[]
  - `required_functions` string[]
  - `error_message` string
  - `branch` string
  - `commit_ref` string
  - `commit_url` string
  - `skipped` boolean
  - `created_at` string, dateTime
  - `updated_at` string, dateTime
  - `published_at` string, dateTime
  - `title` string
  - `context` string
  - `locked` boolean
  - `review_url` string
  - `framework` string
  - `skew_protection_token` string
  - `function_schedules` FunctionSchedule[]
    - `name` string
    - `cron` string

## Other responses

- `default` — error

---

[API](https://skmtc.dev/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.dev/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/revisions/e62b5cb303af/schema)
