Provides API endpoints related to api/runs/key value store/records
Summary
Functions
Delete record from the default key-value store of an Actor run
Get record from the default key-value store of an Actor run
Download records from the default key-value store of an Actor run
Set record in the default key-value store of an Actor run
Functions
@spec delete(run_id :: String.t(), record_key :: String.t(), opts :: keyword()) :: :ok | {:error, ApifyClient.Error.t()}
Delete record from the default key-value store of an Actor run
Removes a record specified by a key from the default key-value store of the Actor run.
This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the
Delete key-value store record endpoint.
@spec get(run_id :: String.t(), record_key :: String.t(), opts :: keyword()) :: {:ok, any()} | {:error, ApifyClient.Error.t()}
Get record from the default key-value store of an Actor run
Gets a value stored under a specific key in the default key-value store of the Actor run.
This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the
Get key-value store record endpoint.
Options
signature: Signature used for the access.attachment: Iftrueor1, the response will be served withContent-Disposition: attachmentheader, causing web browsers to offer downloading HTML records instead of displaying them.
@spec list(run_id :: String.t(), opts :: keyword()) :: {:ok, binary()} | {:error, ApifyClient.Error.t()}
Download records from the default key-value store of an Actor run
Downloads all records from the default key-value store of the Actor run as a ZIP archive.
This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the
Download key-value store records endpoint.
Options
collection: If specified, only records belonging to a specific collection from the key-value store schema. The key-value store need to have a schema defined for this parameter to work.prefix: If specified, only records whose key starts with the given prefix are included in the archive.signature: Signature used for the access.
@spec update( run_id :: String.t(), record_key :: String.t(), body :: any(), opts :: keyword() ) :: {:ok, map() | nil} | {:error, ApifyClient.Error.t()}
Set record in the default key-value store of an Actor run
Stores a value under a specific key in the default key-value store of the Actor run.
This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the
Set key-value store record endpoint.
Request Body
Content Types: */*, application/json