Class AgentsClient
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
public class AgentsClient : IAgentsClient
- Inheritance
-
AgentsClient
- Implements
- Inherited Members
- Extension Methods
Methods
CreateAsync(CreateAgentRequestContent, RequestOptions?, CancellationToken)
Create an agent
public WithRawResponseTask<AgentResponseContent> CreateAsync(CreateAgentRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestCreateAgentRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Agents.CreateAsync(new CreateAgentRequestContent { Name = "name" });
DeleteAsync(string, RequestOptions?, CancellationToken)
Delete an agent
public WithRawResponseTask DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Agents.DeleteAsync("id");
ListAsync(ListAgentsRequestParameters, RequestOptions?, CancellationToken)
Get agents
public Task<Pager<AgentResponseContent>> ListAsync(ListAgentsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestListAgentsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Agents.ListAsync(new ListAgentsRequestParameters { From = "from", Take = 1 });
ReadAsync(string, RequestOptions?, CancellationToken)
Get an agent
public WithRawResponseTask<AgentResponseContent> ReadAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Agents.ReadAsync("id");
UpdateAsync(string, PatchAgentRequestParameters, RequestOptions?, CancellationToken)
Update an agent
public WithRawResponseTask<AgentResponseContent> UpdateAsync(string id, PatchAgentRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestPatchAgentRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Agents.UpdateAsync("id", new PatchAgentRequestParameters());