SenseCrypt Docs
API ReferenceAdmin Oidc Apps

Update Oidc App Resource Servers

PUT/v1/admin/oidc-apps/{client_id}/resource-servers

Replace the full set of API audiences this app may request. Every id in the body must belong to the caller's tenant + tenant and be non-deleted; any mismatch yields 422 with the offenders.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

client_id*Client Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

PUT body: replace the full set of API audiences this app may request.

Response Body

application/json

application/json

curl -X PUT "https://example.com/v1/admin/oidc-apps/string/resource-servers" \  -H "Content-Type: application/json" \  -d '{}'
{  "resource_servers": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "audience": "string",      "enforce_rbac": true    }  ]}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}