---
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

---

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