Table of Contents

Class OrganizationTemplateClient

Namespace
Auth0.ManagementApi.Organizations
Assembly
Auth0.ManagementApi.dll
public class OrganizationTemplateClient : IOrganizationTemplateClient
Inheritance
OrganizationTemplateClient
Implements
Inherited Members
Extension Methods

Methods

AssignOrganizationTemplateAsync(string, string, RequestOptions?, CancellationToken)

Assign an Organization Template to an organization.

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

Parameters

id string
templateId string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask

Examples

await client.Organizations.OrganizationTemplate.AssignOrganizationTemplateAsync(
    "id",
    "template_id"
);

GetAsync(string, RequestOptions?, CancellationToken)

Retrieve the organization template assigned to a specific organization. Returns the template object if one is explicitly assigned, or a 404 if no template is assigned.

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

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<OrganizationTemplate>

Examples

await client.Organizations.OrganizationTemplate.GetAsync("id");

UnassignOrganizationTemplateAsync(string, string, RequestOptions?, CancellationToken)

Remove an Organization Template assignment from an organization.

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

Parameters

id string
templateId string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask

Examples

await client.Organizations.OrganizationTemplate.UnassignOrganizationTemplateAsync(
    "id",
    "template_id"
);