# Update the active storage for the authenticated user.

> For the complete documentation index, see [llms.txt](https://bsvblockchain.com/docs/llms.txt).

**POST** `/sync/active`

Base URL: `https://{host}/storage/v1`

Update the active storage for the authenticated user.

## Body

Content type: `application/json`

- `newActiveStorageIdentityKey` (string, required)
  storageIdentityKey of the storage to set as active.

Example:

```json
{
  "newActiveStorageIdentityKey": "string"
}
```

## Responses

### 200

Number of rows updated.

- `updated` (integer)

Example:

```json
{
  "updated": 0
}
```