---
title: "Sets server configuration"
method: PUT
path: "/api/server/config"
tags: ["Server Configuration"]
---

# Sets server configuration

`PUT /api/server/config`

## Request body

- object
  - `php_cli` string — Path to the PHP command line.
  - `cloud` boolean — Enables or disables use of the Composer Resolver Cloud.

## Response `200`

If the config was successfully saved.

- ServerConfig
  - `php_cli` string — Path to the PHP command line.
  - `cloud` object
    - `enabled` boolean — Whether the Composer Resolver Cloud is used when updating packages.
    - `issues` string[]

## Other responses

- `400` — Error message if the PHP CLI is invalid

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2020-07-23** `42c41034504b` — 2 info
  - the endpoint scheme security `CookieAuthentication` was removed from the API
  - the endpoint scheme security `TokenAuthentication` was removed from the API

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/server/config/put.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/4dc3bf84edf7/schema)
