---
title: "update service"
method: PUT
path: "/services/{id}"
tags: ["Services"]
---

# update service

`PUT /services/{id}`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/services/{id}`
- Auth: API key in header `Authorization`

Updates a service's attributes.

## Path parameters

- `id` integer, required

## Query parameters

- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Request body

- UpdateServiceRequest
  - `naive_health_check` boolean
  - `force_zero_downtime` boolean
  - `restart_free_scaling` boolean
  - `stop_timeout` integer

## Response `200`

successful

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-07-24** `1dc1e5b8c6eb`: 2 info
  - added the new optional `header` request parameter `Prefer`
  - added the new optional `query` request parameter `no_embed`
- **2025-11-20** `1a8233ac6563`: 1 info
  - added the new optional request property `restart_free_scaling`
- **2025-05-09** `ee2aa8884ffa`: 1 info
  - added the new optional request property `stop_timeout`
- **2024-09-18** `fc8a32acd201`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/services/:id/put.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
