---
title: "PUT /api/sites/{id}/user-agent"
method: PUT
path: "/api/sites/{id}/user-agent"
tags: ["Sites"]
---

# PUT /api/sites/{id}/user-agent

`PUT /api/sites/{id}/user-agent`

## Request

- Base URL: `https://api-admin.hackgate.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api-admin.hackgate.io/api/sites/{id}/user-agent`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- UserAgentUpdateRequest
  - `enabled` boolean
  - `value` string, nullable

## Response `200`

OK

- Site
  - `id` string, nullable
  - `originName` string, nullable
  - `customOrigin` string, nullable
  - `hackgatedName` string, nullable
  - `isActive` boolean
  - `orgId` string, nullable
  - `cretedByUserId` string, nullable
  - `creationdDate` string, date-time
  - `hasCustomList` boolean
  - `isDeploymentProgress` boolean
  - `startDate` string, date-time
  - `stopDate` string, date-time
  - `credentials` string, nullable
  - `instructions` string, nullable
  - `rateLimit` string, nullable
  - `blockList` string, nullable
  - `customRequestHeaderName` string, nullable
  - `customRequestHeaderValue` string, nullable
  - `customUserAgent` string, nullable
  - `customRequestHeaderEnabled` boolean
  - `customUserAgentEnabled` boolean
  - `basicAuthenticationEnabled` boolean

## Changes

- **2026-11-04** `4001be3c2ed0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hackgate/apis/hackgate-admin-api/changes/api/sites/:id/user-agent/put.md)

---

[API](https://skmtc.dev/hackgate/apis/hackgate-admin-api.md) - [All operations](https://skmtc.dev/hackgate/apis/hackgate-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hackgate/apis/hackgate-admin-api/revisions/4001be3c2ed0?raw)
