# Change the name or the upstream addresses

`PUT /s/{site}/config` · Praecise Shield for AI · Site

Change the name or the upstream addresses. A changed host loses the credential the operator set for the old one.

## Parameters

- `site` (path, required), string: The site id (ai_…).

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": ""
    },
    "upstream": {
      "type": "object",
      "properties": {
        "llm": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": ""
                },
                "format": {
                  "enum": [
                    "openai",
                    "anthropic"
                  ]
                },
                "authEnv": {
                  "type": "string",
                  "description": "Operator only: SHIELD_AI_UP_… "
                }
              },
              "required": [
                "url"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "mcp": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": ""
                },
                "authEnv": {
                  "type": "string",
                  "description": "Operator only."
                }
              },
              "required": [
                "url"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": []
    },
    "account": {
      "type": "string",
      "description": "Operator only."
    },
    "relationship": {
      "type": "string",
      "description": "Operator only."
    }
  },
  "required": []
}
```

## Responses

- `200`: OK
- `400`: OK

## Example

```sh
curl -X PUT 'https://shield-ai.praecise.com/s/{site}/config' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "upstream": {
    "llm": {
      "url": "string"
    },
    "mcp": {
      "url": "string"
    }
  },
  "account": "string",
  "relationship": "string"
}'
```
