public function ClientGrants::update in Auth0 Single Sign On 8.2
Update an existing Client Grant. Required scope: "update:client_grants"
@link https://auth0.com/docs/api/management/v2#!/Client_Grants/patch_client_gr...
Parameters
string $id Client Grant ID to update.:
array $scope Array of scopes to update; will replace existing scopes, not merge.:
Return value
mixed
Throws
\Exception Thrown by the HTTP client when there is a problem with the API call.
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ ClientGrants.php, line 164
Class
- ClientGrants
- Class ClientGrants. Handles requests to the Client Grants endpoint of the v2 Management API.
Namespace
Auth0\SDK\API\ManagementCode
public function update($id, array $scope) {
return $this->apiClient
->method('patch')
->addPath('client-grants', $id)
->withBody(json_encode([
'scope' => $scope,
]))
->call();
}