Pi Durable Platformdocs
ReferenceOAuth consent and connected apps

Replace the trusted apps (platform admins)

PUT
/v1/admin/settings/oauth-clients

Only apps identified by a Client ID Metadata Document (an https URL with a path) can be trusted: a registered app's ID changes, and anyone can register any name. A trusted app skips the consent screen, never the sign-in.

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
clients*array<>
Itemsitems <= 50

Response Body

Trusted apps

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