Back to Node Auth0

Class CustomTextClient

docs/classes/management.SDK.CustomTextClient.html

5.9.14.9 KB
Original Source

Class CustomTextClient

Index

Constructors

constructor

Methods

getset

Properties

_options

Constructors

constructor

new CustomTextClient(options: BaseClientOptions): CustomTextClient

Parameters

Returns CustomTextClient

Methods

get

get(
prompt: Management.PromptGroupNameEnum,
language: Management.PromptLanguageEnum,
requestOptions?: CustomTextClient.RequestOptions,
): HttpResponsePromise<GetCustomTextsByLanguageResponseContent>

Retrieve custom text for a specific prompt and language.

Parameters

Name of the prompt.

Language to update.

Request-specific configuration.

Returns HttpResponsePromise<GetCustomTextsByLanguageResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.prompts.customText.get("login", "am")Copy

set

set(
prompt: Management.PromptGroupNameEnum,
language: Management.PromptLanguageEnum,
request: SetsCustomTextsByLanguageRequestContent,
requestOptions?: CustomTextClient.RequestOptions,
): HttpResponsePromise<void>

Set custom text for a specific prompt. Existing texts will be overwritten.

Parameters

Name of the prompt.

Language to update.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.prompts.customText.set("login", "am", { "key": "value" })Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods getset Properties _options