# `ApifyClient.API.Runs.KeyValueStore`
[🔗](https://github.com/social-growth-studio/apify-client-ex/blob/v1.0.0/lib/apify_client/api/runs/key_value_store.ex#L1)

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

# `delete`

```elixir
@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](https://docs.apify.com/api/v2/key-value-store-delete) endpoint.

# `get`

```elixir
@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](https://docs.apify.com/api/v2/key-value-store-get) endpoint.

# `update`

```elixir
@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](https://docs.apify.com/api/v2/key-value-store-put) endpoint.

## Request Body

**Content Types**: `application/json`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
