---
title: "Turn automatic deploys on or off"
method: POST
path: "/client/services/{id}/deploy-on-push"
tags: ["Apps"]
---

# Turn automatic deploys on or off

`POST /client/services/{id}/deploy-on-push`

## Request

- Base URL: `https://api.roar-ai.com`
- URL: `https://api.roar-ai.com/client/services/{id}/deploy-on-push`
- Auth: HTTP bearer

Whether a push to the connected branch redeploys. `id` is a SERVICE id — take it from `services[].id` on `GET /client/apps/{appId}`, not the app id itself. Requires `apps:deploy`.

## Path parameters

- `id` string, uuid, required

## Request body

- object

## Response `200`

Applied

## Other responses

- `404`: No such service for you

---

[API](https://skmtc.dev/roar-ai/apis/roar-ai-api.md) · [All operations](https://skmtc.dev/roar-ai/apis/roar-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/roar-ai/apis/roar-ai-api/revisions/37e4d0d5a7fe?raw)
