ApifyClient.API.Runs.Dataset (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoints related to api/runs/dataset

Summary

Functions

Delete the default dataset of an Actor run

Get the default dataset of an Actor run

Get the default dataset statistics for an Actor run

Update the default dataset of an Actor run

Functions

delete(run_id, opts \\ [])

@spec delete(run_id :: String.t(), opts :: keyword()) ::
  :ok | {:error, ApifyClient.Error.t()}

Delete the default dataset of an Actor run

Deletes default dataset associated with an Actor run.

This endpoint is a shortcut for getting the last run's defaultDatasetId and then using the Delete dataset endpoint.

get(run_id, opts \\ [])

@spec get(run_id :: String.t(), opts :: keyword()) ::
  {:ok, ApifyClient.Schemas.DatasetResource.t()}
  | {:error, ApifyClient.Error.t()}

Get the default dataset of an Actor run

Returns the default dataset associated with an Actor run.

This endpoint is a shortcut for getting the run's defaultDatasetId and then using the Get dataset endpoint.

statistics(run_id, opts \\ [])

@spec statistics(run_id :: String.t(), opts :: keyword()) ::
  {:ok, ApifyClient.Schemas.DatasetStatistics.t()}
  | {:error, ApifyClient.Error.t()}

Get the default dataset statistics for an Actor run

Returns statistics for the Actor run's default dataset.

This endpoint is a shortcut that resolves the run's defaultDatasetId and proxies to the Get dataset statistics endpoint.

update(run_id, body, opts \\ [])

@spec update(
  run_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 run

Updates the default dataset associated with an Actor run.

This endpoint is a shortcut for getting the run's defaultDatasetId and then using the Update dataset endpoint.

Request Body

Content Types: application/json