I’m using the Okta client-management collection; the Update Client item fails with
{
“error”: “invalid_client_metadata”,
“error_description”: “‘client_id’ cannot be modified.”
}
I’m not trying to modify client_id - I get the same failure with and without client_id specified in the body.
I have to assume that this essential API endpoint works, but have no idea what might be wrong.
here’s the full request (redacted of course) - as you can see, not an adventurous stretch. I like to see the bare essentials working before I mess with the request. I’ve tried a great many variants on this - exact same failure every time.
curl -X PUT
https://dev-nnnmmm.oktapreview.com/oauth2/v1/clients/
-H ‘Accept: application/json’
-H ‘Authorization: SSWS _______’
-H ‘Content-Type: application/json’
-H ‘cache-control: no-cache’
-d ‘{
“client_name”: “here is your new name”,
“client_uri”: “URLhere”,
“logo_uri”: “URLhere”,
“application_type”: “web”,
“redirect_uris”: [
“URLhere”
],
“post_logout_redirect_uris”: [
“URLhere”
],
“response_types”: [
“id_token”,
“code”
],
“grant_types”: [
“authorization_code”
],
“token_endpoint_auth_method”: “client_secret_post”,
“initiate_login_uri”: “URLhere”
}’