---
title: "Set whether migrations run on every deploy"
method: POST
path: "/client/services/{id}/migrations"
tags: ["Apps"]
---

# Set whether migrations run on every deploy

`POST /client/services/{id}/migrations`

## Request

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

On for an app created with a Roar database (its database starts empty, so its schema has to be applied on the first deploy); off for every other app, because applying a schema change to existing data is a decision the owner makes once, explicitly. Either way the owner can change it here. `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)
