Method: Auth0::Api::V2::Clients#create_client_credentials

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

#create_client_credentials(client_id, options) ⇒ Object

Creates credentials for a client

Parameters:

  • client_id (string)

    The Id of the client to update

  • options (hash)

    The payload to send to the endpoint

Raises:



79
80
81
82
83
# File 'lib/auth0/api/v2/clients.rb', line 79

def create_client_credentials(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?
  post(client_credentials_path(client_id), options)
end