Client Scopes update problem using PUT /{realm}/clients/{id} | (REST API Keycloak Admin)

Hello,
I have a problem when I try to update the client scopes of a client using the API Rest of the administration panel.
This is the endpoint I’m using:
PUT /{realm}/clients/{id}

I’m sending this json:
{
optionalClientScopes: [ ‘web-origins’, ‘phone’],
clientId: ‘client-test-1’,
secret: ‘mysecrret’,
standardFlowEnabled: true,
serviceAccountsEnabled: false
}

And the api responds a 200, it also updates all the fields, except the client scopes list.

2 Likes