Table of Contents

Class PortalsClient

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
public class PortalsClient : IPortalsClient
Inheritance
PortalsClient
Implements
Inherited Members
Extension Methods

Methods

CreateAsync(CreatePortalRequestContent, RequestOptions?, CancellationToken)

public WithRawResponseTask<Portal> CreateAsync(CreatePortalRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

request CreatePortalRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<Portal>

Examples

await client.Portals.CreateAsync(
    new CreatePortalRequestContent
    {
        Slug = "slug",
        Name = "name",
        Client = new PortalClientSecretPostRequest
        {
            TokenEndpointAuthMethod =
                PortalClientSecretPostRequestTokenEndpointAuthMethod.ClientSecretPost,
            ClientId = "client_id",
            ClientSecret = "client_secret",
        },
    }
);

DeleteAsync(string, RequestOptions?, CancellationToken)

public WithRawResponseTask DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask

Examples

await client.Portals.DeleteAsync("id");

GetAsync(string, RequestOptions?, CancellationToken)

public WithRawResponseTask<Portal> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<Portal>

Examples

await client.Portals.GetAsync("id");

ListAsync(RequestOptions?, CancellationToken)

public WithRawResponseTask<ListPortalsResponseContent> ListAsync(RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<ListPortalsResponseContent>

Examples

await client.Portals.ListAsync();

UpdateAsync(string, UpdatePortalRequestContent, RequestOptions?, CancellationToken)

public WithRawResponseTask<Portal> UpdateAsync(string id, UpdatePortalRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request UpdatePortalRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<Portal>

Examples

await client.Portals.UpdateAsync("id", new UpdatePortalRequestContent());