Back to Node Auth0

Class SelfServiceProfilesClient

docs/classes/management.SDK.SelfServiceProfilesClient.html

5.9.110.2 KB
Original Source

Class SelfServiceProfilesClient

Index

Accessors

customTextssoTicket

Constructors

constructor

Methods

listcreategetdeleteupdate

Properties

_options_customText_ssoTicket

Accessors

customText

get customText(): CustomTextClient

Returns CustomTextClient

ssoTicket

get ssoTicket(): SsoTicketClient

Returns SsoTicketClient

Constructors

constructor

new SelfServiceProfilesClient(
options: BaseClientOptions,
): SelfServiceProfilesClient

Parameters

Returns SelfServiceProfilesClient

Methods

list

list(
request?: ListSelfServiceProfilesRequestParameters,
requestOptions?: SelfServiceProfilesClient.RequestOptions,
): Promise<
Page<
SelfServiceProfile,
ListSelfServiceProfilesPaginatedResponseContent,
>,
>

Retrieves self-service profiles.

Parameters

Request-specific configuration.

Returns Promise< Page< SelfServiceProfile, ListSelfServiceProfilesPaginatedResponseContent, >, >

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Throws

Management.InternalServerError

Example

await client.selfServiceProfiles.list({ page: 1, per_page: 1, include_totals: true })Copy

create

create(
request: CreateSelfServiceProfileRequestContent,
requestOptions?: SelfServiceProfilesClient.RequestOptions,
): HttpResponsePromise<CreateSelfServiceProfileResponseContent>

Creates a self-service profile.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<CreateSelfServiceProfileResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Throws

Management.InternalServerError

Example

await client.selfServiceProfiles.create({ name: "name" })Copy

get

get(
id: string,
requestOptions?: SelfServiceProfilesClient.RequestOptions,
): HttpResponsePromise<GetSelfServiceProfileResponseContent>

Retrieves a self-service profile by Id.

Parameters

  • id: string

The id of the self-service profile to retrieve

Request-specific configuration.

Returns HttpResponsePromise<GetSelfServiceProfileResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Throws

Management.InternalServerError

Example

await client.selfServiceProfiles.get("id")Copy

delete

delete(
id: string,
requestOptions?: SelfServiceProfilesClient.RequestOptions,
): HttpResponsePromise<void>

Deletes a self-service profile by Id.

Parameters

  • id: string

The id of the self-service profile to delete

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Throws

Management.InternalServerError

Example

await client.selfServiceProfiles.delete("id")Copy

update

update(
id: string,
request?: UpdateSelfServiceProfileRequestContent,
requestOptions?: SelfServiceProfilesClient.RequestOptions,
): HttpResponsePromise<UpdateSelfServiceProfileResponseContent>

Updates a self-service profile.

Parameters

  • id: string

The id of the self-service profile to update

Request-specific configuration.

Returns HttpResponsePromise<UpdateSelfServiceProfileResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Throws

Management.InternalServerError

Example

await client.selfServiceProfiles.update("id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Protected_customText

_customText: CustomTextClient | undefined

Protected_ssoTicket

_ssoTicket: SsoTicketClient | undefined

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Accessors customTextssoTicket Constructors constructor Methods listcreategetdeleteupdate Properties _options_customText_ssoTicket