---
title: "Update automatic deployment settings"
method: POST
path: "/projects/{project_id}/auto_deployments"
tags: ["Automatic Deployments"]
---

# Update automatic deployment settings

`POST /projects/{project_id}/auto_deployments`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/auto_deployments`
- Auth: HTTP basic

Enables or disables automatic deployments for individual servers and server groups. Unrecognized identifiers are skipped and reported in the response.

## Path parameters

- `project_id` string, required

## Request body

- DeployablesObject
  - `deployables` object[]
    - `identifier` string
    - `auto_deploy` boolean
    - `command_deployable` boolean

## Response `200`

Success

- DeployablesSkippedObject
  - `deployables` object[]
    - `identifier` string
    - `name` string
    - `type` string
    - `auto_deploy` boolean
    - `command_deployable` boolean
    - `preferred_branch` string
  - `skipped` string[]

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
