## Archive a share link

`share_links.archive(strid)  -> ShareLinkArchiveResponse`

**post** `/compute/v1/share-links/{id}/archive`

Archive a share link so it no longer grants public access. Metadata remains retrievable and repeated calls preserve the first archive timestamp.

### Parameters

- `id: str`

### Returns

- `class ShareLinkArchiveResponse: …`

  - `id: str`

  - `archived: Literal[true]`

    - `true`

  - `archived_at: datetime`

    When the share link was first archived.

### Example

```python
import os
from boltz_api import Boltz

client = Boltz(
    api_key=os.environ.get("BOLTZ_API_KEY"),  # This is the default and can be omitted
)
response = client.share_links.archive(
    "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
)
print(response.id)
```

#### Response

```json
{
  "id": "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
  "archived": true,
  "archived_at": "2019-12-27T18:11:19.117Z"
}
```
