Method: Auth0::Api::V2::Clients#patch_client

Defined in:
lib/auth0/api/v2/clients.rb

#patch_client(client_id, options) ⇒ Object

Updates a client.

Parameters:

  • client_id (string)

    The id of the client to update.

  • options (hash)

    The Hash options used to define the client’s properties.

Raises:

See Also:



69
70
71
72
73
74
# File 'lib/auth0/api/v2/clients.rb', line 69

def patch_client(client_id, options)
  raise Auth0::MissingClientId, 'Must specify a client id' if client_id.to_s.empty?
  raise Auth0::MissingParameter, 'Must specify a valid body' if options.to_s.empty?
  path = "#{clients_path}/#{client_id}"
  patch(path, options)
end