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

Copy Markdown View Source

Provides API endpoints related to api/runs/key value store

Summary

Functions

Delete the default key-value store of an Actor run

Get the default key-value store of an Actor run

Update the default key-value store 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 key-value store of an Actor run

Delete the default key-value store.

This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the Delete key-value store endpoint.

get(run_id, opts \\ [])

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

Get the default key-value store of an Actor run

Gets an object that contains all the details about the default key-value store.

This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the Get key-value store endpoint.

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

@spec update(
  run_id :: String.t(),
  body :: map() | ApifyClient.Schemas.UpdateKeyValueStoreRequest.t(),
  opts :: keyword()
) ::
  {:ok, ApifyClient.Schemas.KeyValueStoreResource.t()}
  | {:error, ApifyClient.Error.t()}

Update the default key-value store of an Actor run

Updates the default key-value store's name and general resource access level using a value specified by a JSON object passed in the PUT payload.

This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the Update key-value store endpoint.

Request Body

Content Types: application/json