Provides API endpoints related to api/actors/runs/last/dataset
Summary
Functions
Delete the default dataset of an Actor's last run
Get the default dataset of an Actor's last run
Get the default dataset statistics for an Actor's last run
Update the default dataset of an Actor's last run
Functions
@spec delete(actor_id :: String.t(), opts :: keyword()) :: :ok | {:error, ApifyClient.Error.t()}
Delete the default dataset of an Actor's last run
Deletes the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's defaultDatasetId and then using the
Delete dataset endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.
@spec get(actor_id :: String.t(), opts :: keyword()) :: {:ok, ApifyClient.Schemas.DatasetResource.t()} | {:error, ApifyClient.Error.t()}
Get the default dataset of an Actor's last run
Returns the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's defaultDatasetId and then using the
Get dataset endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.
@spec statistics(actor_id :: String.t(), opts :: keyword()) :: {:ok, ApifyClient.Schemas.DatasetStatistics.t()} | {:error, ApifyClient.Error.t()}
Get the default dataset statistics for an Actor's last run
Returns statistics for the last Actor run's default dataset.
This endpoint is a shortcut that resolves the last run's defaultDatasetId and proxies to the
Get dataset statistics endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.
@spec update( actor_id :: String.t(), body :: map() | ApifyClient.Schemas.UpdateDatasetRequest.t(), opts :: keyword() ) :: {:ok, ApifyClient.Schemas.DatasetResource.t()} | {:error, ApifyClient.Error.t()}
Update the default dataset of an Actor's last run
Updates the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's defaultDatasetId and then using the
Update dataset endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.
Request Body
Content Types: application/json