Interface IExperimentsClient
- Namespace
- Auth0.ManagementApi.Experimentation
- Assembly
- Auth0.ManagementApi.dll
public interface IExperimentsClient
- Extension Methods
Methods
AdvanceRampAsync(string, AdvanceRampRequestContent, RequestOptions?, CancellationToken)
Increments the current ramp index to the requested target level. Up-only: the target must be the immediate next level in the schedule. Idempotent: calling with the current level returns success without writing anything.
WithRawResponseTask<AdvanceRampResponseContent> AdvanceRampAsync(string id, AdvanceRampRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestAdvanceRampRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
CreateAsync(CreateExperimentRequestContent, RequestOptions?, CancellationToken)
Create a new experiment for A/B testing.
WithRawResponseTask<CreateExperimentResponseContent> CreateAsync(CreateExperimentRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestCreateExperimentRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
DeleteAsync(string, RequestOptions?, CancellationToken)
Permanently delete an experiment and its allocations by ID. Active experiments cannot be deleted; pause or complete first. Idempotent: returns 204 even if the experiment does not exist.
WithRawResponseTask DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
GetAsync(string, RequestOptions?, CancellationToken)
Retrieve a single experiment with its allocations by ID.
WithRawResponseTask<GetExperimentResponseContent> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
ListAsync(ListExperimentsRequestParameters, RequestOptions?, CancellationToken)
Retrieve a paginated list of experiments for the tenant, with optional filters.
Task<Pager<ExperimentListItem>> ListAsync(ListExperimentsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestListExperimentsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
UpdateAsync(string, UpdateExperimentRequestParameters, RequestOptions?, CancellationToken)
Partially update an experiment by ID. Only provided fields are updated. Providing allocations replaces the entire allocations set.
WithRawResponseTask<UpdateExperimentResponseContent> UpdateAsync(string id, UpdateExperimentRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestUpdateExperimentRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
ValidateAsync(string, RequestOptions?, CancellationToken)
Checks whether an experiment is ready to be activated. Returns is_valid boolean and an errors array describing any blockers. Read-only; no state is modified.
WithRawResponseTask<ValidateExperimentResponseContent> ValidateAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken