---
title: "Update Site"
method: POST
path: "/update-site"
tags: ["developers"]
---

# Update Site

`POST /update-site`

Updates site at oxd-server. If something changes in a pre-registered client, you can use this API to update your client in the OP.

## Headers

- `Authorization` string

## Request body

- object
  - `oxd_id` string, required
  - `authorization_redirect_uri` string
  - `post_logout_redirect_uri` string
  - `response_types` string[]
  - `grant_types` string[]
  - `scope` string[]
  - `acr_values` string[]
  - `client_jwks_uri` string
  - `client_token_endpoint_auth_method` string
  - `client_request_uris` string[]
  - `client_sector_identifier_uri` string
  - `contacts` string[]
  - `ui_locales` string[]
  - `claims_locales` string[]
  - `access_token_as_jwt` boolean — specifies whether access_token should be return as JWT or not. Default value is false.
  - `access_token_signing_alg` string — sets signing algorithm used for JWT signing. Valid values are none, HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512

## Response `200`

OK

- object
  - `oxd_id` string, required

## Other responses

- `400` — Invalid parameters are provided to endpoint.
- `403` — Forbidden. Invalid access token provided in Authorization header.
- `500` — Internal error occured. Please check oxd-server.log file for details (usually located in /var/log/oxd-server/oxd-server.log).

## Changes

- **2018-11-30** `c28eaefdb285` — 5 breaking, 1 warning
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `403`
  - …2 more

[Change history](https://skmtc.dev/gluufederation/apis/oxd-server/changes/update-site/post.md)

---

[API](https://skmtc.dev/gluufederation/apis/oxd-server.md) · [All operations](https://skmtc.dev/gluufederation/apis/oxd-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gluufederation/oxd-server/revisions/c28eaefdb285/schema)
