---
title: "Update File Modification Settings"
method: PUT
path: "/sites/{site_id}/file-modifications"
tags: ["sites"]
---

# Update File Modification Settings

`PUT /sites/{site_id}/file-modifications`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{site_id}/file-modifications`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:site_id/file-modifications/put.ts> (a function with typed inputs; its response is checked against the schema)

Sets or removes a wp-config file-modification constant for a site. When ‘enabled’ is true the constant is defined as ‘true’ in the site’s wp-config.php; when false the constant is removed. Removing an already-absent constant succeeds, so the disable path is idempotent.

## Path parameters

- `site_id` integer, required

## Request body

- object
  - `constant` string
  - `enabled` boolean

## Response `200`

Successful Response

- object
  - `message` string
  - `data` object

---

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