Back to Node Auth0

Class FormsClient

docs/classes/management.SDK.FormsClient.html

5.9.17.8 KB
Original Source

Class FormsClient

Index

Constructors

constructor

Methods

listcreategetdeleteupdate

Properties

_options

Constructors

constructor

new FormsClient(options: BaseClientOptions): FormsClient

Parameters

Returns FormsClient

Methods

list

list(
request?: ListFormsRequestParameters,
requestOptions?: FormsClient.RequestOptions,
): Promise<Page<FormSummary, ListFormsOffsetPaginatedResponseContent>>

Parameters

Request-specific configuration.

Returns Promise<Page<FormSummary, ListFormsOffsetPaginatedResponseContent>>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.forms.list({ page: 1, per_page: 1, include_totals: true, hydrate: ["flow_count"] })Copy

create

create(
request: CreateFormRequestContent,
requestOptions?: FormsClient.RequestOptions,
): HttpResponsePromise<CreateFormResponseContent>

Parameters

Request-specific configuration.

Returns HttpResponsePromise<CreateFormResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

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

get

get(
id: string,
request?: GetFormRequestParameters,
requestOptions?: FormsClient.RequestOptions,
): HttpResponsePromise<GetFormResponseContent>

Parameters

  • id: string

The ID of the form to retrieve.

Request-specific configuration.

Returns HttpResponsePromise<GetFormResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.forms.get("id", { hydrate: ["flow_count"] })Copy

delete

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

Parameters

  • id: string

The ID of the form to delete.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

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

update

update(
id: string,
request?: UpdateFormRequestContent,
requestOptions?: FormsClient.RequestOptions,
): HttpResponsePromise<UpdateFormResponseContent>

Parameters

  • id: string

The ID of the form to update.

Request-specific configuration.

Returns HttpResponsePromise<UpdateFormResponseContent>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

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

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listcreategetdeleteupdate Properties _options