You are here

public function Clients::update in Auth0 Single Sign On 8.2

Update a Client. Required scopes:

  • "update:clients" - For any call to this endpoint.
  • "update:client_keys" - To update "client_secret" and "encryption_key" attributes.

@link https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id

Parameters

string $client_id Client ID to update.:

array $data Client data to update.:

Return value

mixed|string

Throws

\Exception Thrown by the HTTP client when there is a problem with the API call.

File

vendor/auth0/auth0-php/src/API/Management/Clients.php, line 160

Class

Clients
Class Clients. Handles requests to the Clients endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function update($client_id, array $data) {
  return $this->apiClient
    ->method('patch')
    ->addPath('clients', $client_id)
    ->withBody(json_encode($data))
    ->call();
}