You are here

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

Update a Connection. Required scope: "update:connections"

@link https://auth0.com/docs/api/management/v2#!/Connections/patch_connections...

Parameters

string $id Connection ID to update.:

array $data Connection 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/Connections.php, line 187

Class

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

Namespace

Auth0\SDK\API\Management

Code

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