PromptsManager

management. PromptsManager

PromptsManager Manages settings related to prompts.

Constructor

new PromptsManager(options)

Source:
Parameters:
Name Type Description
options Object

The client options.

Name Type Attributes Description
baseUrl String

The URL of the API.

headers Object <optional>

Headers to be included in all requests.

retry Object <optional>

Retry Policy Config

Members

(inner) auth0RestClient :external:RestClient

Provides an abstraction layer for consuming the Prompts endpoint.

Source:
Type:

Methods

getSettings(params, data, cbopt) → {Promise|undefined}

Get the prompts settings..

Source:
Parameters:
Name Type Attributes Description
params Object

Prompts parameters.

data Object

Prompts data.

cb function <optional>

Callback function.

Returns:
Type:
Promise | undefined
Example
management.prompts.getSettings(data, function (err, prompts) {
  if (err) {
    // Handle error.
  }

// Prompts
   console.log(prompts);
});

updateSettings(params, data, cbopt) → {Promise|undefined}

Update the prompts settings.

Source:
Parameters:
Name Type Attributes Description
params Object

Prompts parameters.

data Object

Updated prompts data.

cb function <optional>

Callback function.

Returns:
Type:
Promise | undefined
Example
management.prompts.updateSettings(data, function (err, prompts) {
  if (err) {
    // Handle error.
  }

// Updated prompts
   console.log(prompts);
});