Interface IPromptsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IPromptsClient
Methods
GetAsync(CancellationToken)
Get prompts settings
Task<Prompt> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
Remarks
Get prompts settings
GetCustomTextForPromptAsync(string, string, CancellationToken)
Retrieve custom text for a specific prompt and language.
Task<object> GetCustomTextForPromptAsync(string promptName, string language, CancellationToken cancellationToken = default)
Parameters
promptName
stringName of the prompt.
language
stringLanguage to update.
cancellationToken
CancellationToken
Returns
GetPartialsAsync(string, CancellationToken)
Get template partials for a prompt
Task<object> GetPartialsAsync(string promptName, CancellationToken cancellationToken = default)
Parameters
promptName
stringName of the prompt.
cancellationToken
CancellationToken
Returns
SetCustomTextForPromptAsync(string, string, object, CancellationToken)
Set custom text for a specific prompt. Existing texts will be overwritten.
Task SetCustomTextForPromptAsync(string promptName, string language, object customText, CancellationToken cancellationToken = default)
Parameters
promptName
stringName of the prompt.
language
stringLanguage to update.
customText
objectAn object containing custom dictionaries for a group of screens.
cancellationToken
CancellationToken
Returns
SetPartialsAsync(string, object, CancellationToken)
Set template partials for a prompt
Task SetPartialsAsync(string promptName, object partials, CancellationToken cancellationToken = default)
Parameters
promptName
stringName of the prompt.
partials
objectAn object containing template partials for a group of screens.
cancellationToken
CancellationToken
Returns
UpdateAsync(PromptUpdateRequest, CancellationToken)
Update prompts settings.
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.