Provides API endpoints related to api/tasks/runs/last/dataset
Summary
Functions
Delete the default dataset of an Actor task's last run
Get the default dataset of an Actor task's last run
Get the default dataset statistics for an Actor task's last run
Update the default dataset of an Actor task's last run
Functions
@spec delete(actor_task_id :: String.t(), opts :: keyword()) :: :ok | {:error, ApifyClient.Error.t()}
Delete the default dataset of an Actor task's last run
Deletes the default dataset associated with the last Actor task run.
This endpoint is a shortcut for getting the last task 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_task_id :: String.t(), opts :: keyword()) :: {:ok, ApifyClient.Schemas.DatasetResource.t()} | {:error, ApifyClient.Error.t()}
Get the default dataset of an Actor task's last run
Returns the default dataset associated with the last Actor task run.
This endpoint is a shortcut for getting the last task 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_task_id :: String.t(), opts :: keyword()) :: {:ok, ApifyClient.Schemas.DatasetStatistics.t()} | {:error, ApifyClient.Error.t()}
Get the default dataset statistics for an Actor task's last run
Returns statistics for the last Actor task run's default dataset.
This endpoint is a shortcut that resolves the last task 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_task_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 task's last run
Updates the default dataset associated with the last Actor task run.
This endpoint is a shortcut for getting the last task 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