---
title: "Replace website PHP extensions"
method: PUT
path: "/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions"
tags: ["Agency Hosting: PHP"]
---

# Replace website PHP extensions

`PUT /api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions`

Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the "built-in" state, are always active and are unaffected.

## Path parameters

- `website_uid` string, required

## Request body

- AgencyHostingV1PhpUpdateExtensionsRequest
  - `extensions` string[], required — Extension names, exactly as returned by the extensions endpoint.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

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