Update OAuth2 client configuration (RFC 7592)
PUT
client_id*stringClient ID
Client update request
application/json- body
client_name?stringclient_uri?stringcontacts?array<string>grant_types?array<>jwks?jwks_uri?stringlogo_uri?stringpolicy_uri?stringredirect_uris?array<string>response_types?array<>scope?stringsoftware_id?stringsoftware_statement?stringsoftware_version?stringtoken_endpoint_auth_method?codersdk.OAuth2TokenEndpointAuthMethodValue in
"client_secret_basic""client_secret_post""none"tos_uri?stringOK
application/json- response
client_id?stringclient_id_issued_at?integerclient_name?stringclient_secret_expires_at?integerclient_uri?stringcontacts?array<string>grant_types?array<>jwks?jwks_uri?stringlogo_uri?stringpolicy_uri?stringredirect_uris?array<string>registration_access_token?stringregistration_client_uri?stringresponse_types?array<>scope?stringsoftware_id?stringsoftware_version?stringtoken_endpoint_auth_method?codersdk.OAuth2TokenEndpointAuthMethodValue in
"client_secret_basic""client_secret_post""none"tos_uri?stringThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/oauth2/clients/{client_id}" \ -H "Content-Type: application/json" \ -d '{ "client_name": "string", "client_uri": "string", "contacts": [ "string" ]}'Example Response
{ "client_id": "string", "client_id_issued_at": 0, "client_name": "string", "client_secret_expires_at": 0, "client_uri": "string", "contacts": [ "string" ], "grant_types": [ "authorization_code" ], "jwks": {}, "jwks_uri": "string", "logo_uri": "string", "policy_uri": "string", "redirect_uris": [ "string" ], "registration_access_token": "string", "registration_client_uri": "string", "response_types": [ "code" ], "scope": "string", "software_id": "string", "software_version": "string", "token_endpoint_auth_method": "client_secret_basic", "tos_uri": "string"}