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

# File Modification Settings

`GET /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/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the current state of the wp-config file-modification constants for a site. ‘disallow_file_edit’ reports the DISALLOW_FILE_EDIT constant (hides the built-in plugin & theme code editor in the WordPress admin) and ‘disallow_file_mods’ reports the DISALLOW_FILE_MODS constant (also blocks plugin/theme installs, updates, and deletions).

## Path parameters

- `site_id` integer, required

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