Skip to content
Skip to Content
Coder Docs

Update OAuth2 provider settings.

PUT
/api/v2/oauth2-provider/settings

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

OAuth2 provider settings request

application/json
  1. body
dynamic_client_registration_enabled?boolean

Response Body

OK

application/json
  1. response
dynamic_client_registration_enabled?boolean

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X PUT \	"$CODER_URL/api/v2/oauth2-provider/settings" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "dynamic_client_registration_enabled": true}'
Example Response200
{  "dynamic_client_registration_enabled": true}