---
title: "Update relying party"
method: PUT
path: "/databases/{databaseId}/auth/oidc/relyingparties"
tags: ["authentication"]
---

# Update relying party

`PUT /databases/{databaseId}/auth/oidc/relyingparties`

## Request

- Base URL: `https://global.thenile.dev`
- URL: `https://global.thenile.dev/databases/{databaseId}/auth/oidc/relyingparties`
- Auth: HTTP bearer

Updates an OIDC relying party. The `clientId`, `clientSecret` and `enabled` properties may be modified.

## Path parameters

- `databaseId` string, required

## Request body

- OIDCRelyingParty
  - `id` string
  - `tenantId` string
  - `provider` string, required
  - `clientId` string, required
  - `clientSecret` string, required
  - `emailDomains` string[]
  - `enabled` boolean

## Response `200`

Relying party updated successfully

- OIDCRelyingParty
  - `id` string
  - `tenantId` string
  - `provider` string, required
  - `clientId` string, required
  - `clientSecret` string, required
  - `emailDomains` string[]
  - `enabled` boolean

## Other responses

- `401`: Unauthorized
- `404`: Relying party not found

---

[API](https://skmtc.dev/thenile/apis/nile-rest-api.md) · [All operations](https://skmtc.dev/thenile/apis/nile-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thenile/apis/nile-rest-api/revisions/afe849f2aeec?raw)
