---
title: "Change state of service_name.instance_name"
method: POST
path: "/services/{service}/{instance}/state/{desired_state}"
tags: ["service"]
---

# Change state of service_name.instance_name

`POST /services/{service}/{instance}/state/{desired_state}`

## Path parameters

- `service` string, required
- `instance` string, required
- `desired_state` string, required

## Response `200`

Result of instance state change

## Other responses

- `404` — Deployment key not found
- `500` — Instance failure

---

[API](https://skmtc.dev/yelp/apis/paasta-api.md) · [All operations](https://skmtc.dev/yelp/apis/paasta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yelp/apis/paasta-api/revisions/4e68a4d7f4e6?raw)
