Class PromptsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /prompts endpoints.
public class PromptsClient : BaseClient, IPromptsClient
- Inheritance
-
PromptsClient
- Implements
- Inherited Members
Constructors
PromptsClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance on PromptsClient
public PromptsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Methods
GetAsync(CancellationToken)
Get prompts settings
public Task<Prompt> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
Remarks
Get prompts settings
UpdateAsync(PromptUpdateRequest, CancellationToken)
Update prompts settings.
public Task<Prompt> UpdateAsync(PromptUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
PromptUpdateRequestSpecifies prompt setting values that are to be updated.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
Remarks
Update prompts settings.