---
title: "Updates a service configuration for given service ID and returns the old configuration."
method: PUT
path: "/services/{serviceId}/config"
tags: ["services"]
---

# Updates a service configuration for given service ID and returns the old configuration.

`PUT /services/{serviceId}/config`

## Path parameters

- `serviceId` string, required

## Headers

- `Accept-Language` string

## Request body

- object

## Response `200`

OK

- string

## Other responses

- `204` — No old configuration
- `500` — Configuration can not be updated due to internal error

---

[API](https://skmtc.net/openhab/apis/openhab-rest-api.md) · [All operations](https://skmtc.net/openhab/apis/openhab-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openhab/openhab-rest-api/versions/0f2ce17cab3e/schema)
