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

Copy Markdown View Source

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

delete(actor_id, opts \\ [])

@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.

get(actor_id, opts \\ [])

@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.

statistics(actor_id, opts \\ [])

@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.

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

@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