Pi Durable Platformdocs
ReferenceModels and usage

Change the model settings (platform admins)

PUT
/v1/admin/settings/models

Turning team providers (or team MCP servers) off stops teams adding new ones; existing ones keep working and can still be changed or deleted. privateNetworks are the private CIDRs teams' own services, model providers and MCP servers alike, may be on (public addresses are always allowed; loopback, link-local and cloud metadata addresses never).

Header Parameters

If-Match*string

The resource's revision, as returned in ETag (for example "3"). Missing returns 428; stale returns 412.

Request Body

application/json
  1. body
teamsMayAddProviders*boolean
teamsMayAddMcpServers?boolean

Omitted keeps the current setting

privateNetworks*array<string>

Private CIDRs such as 10.20.0.0/16 (not loopback, link-local or public ranges)

Itemsitems <= 50

Response Body

Settings

application/json
  1. response
data*
curl -X PUT 'https://agents.example.com/v1/admin/settings/models' \  -H 'If-Match: string' \  -H 'Content-Type: application/json' \  -d '{  "teamsMayAddProviders": true,  "privateNetworks": [    "string"  ]}'
{  "data": {    "teamsMayAddProviders": true,    "teamsMayAddMcpServers": true,    "privateNetworks": [      "string"    ],    "revision": 0,    "updatedAt": "2019-08-24T14:15:22Z"  }}