---
title: "Change when a secure link expires"
description: "Extends or shortens one of your team's secure links that still opens: expiresAtUtc at least an hour from now and at most 31 days after the link was created, since its report is the company as it was then. To end it at once, revoke it (DELETE /companies/secure-links/{secureLinkId})."
url: https://docs.tic.io/api-lens/companies/change-when-a-secure-link-expires
lastmod: 2026-11-15T18:06:31.776Z
---

# Change when a secure link expires

Extends or shortens one of your team's secure links that still opens: expiresAtUtc at least an hour from now and at most 31 days after the link was created, since its report is the company as it was then. To end it at once, revoke it (DELETE /companies/secure-links/{secureLinkId}).

```http
PATCH https://lens-api.tic.io/companies/secure-links/{secureLinkId}
```

Extends or shortens one of your team's secure links that still opens: `expiresAtUtc` at least an hour from now and at most 31 days after the link was created, since its report is the company as it was then. To end it at once, revoke it (DELETE /companies/secure-links/{secureLinkId}).

**Requires:** Enterprise+ tier

**Authentication:** API key in the `x-api-key` header.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `secureLinkId` | path | integer | yes | The secure link's id (secureLinkId) |

## Request body (application/json)

```json
{
  "expiresAtUtc": "2026-01-15T10:30:00Z"
}
```

## Responses

### 200

The link with its new expiry

```json
{
  "secureLinkId": 123,
  "issuedAtUtc": "2026-01-15T10:30:00Z",
  "expiresAtUtc": "2026-01-15T10:30:00Z",
  "isActive": true,
  "createdByUserId": 123,
  "visits": 123,
  "visitors": 123,
  "lastVisitedAtUtc": "2026-01-15T10:30:00Z",
  "annualReportsOpened": 123
}
```

### 400

ExpiresAtUtc less than an hour from now or more than 31 days after the link was created

### 404

No such secure link in your team

### 409

The link has expired or was revoked

- Extends or shortens a secure link that still opens.
- **`expiresAtUtc`:** at least 1 hour from now and at most 31 days after the link was created, since its report shows the company as it was then.
- **A link that has expired or was revoked** answers `409`: create a new one.
- **To end a link at once:** [Revoke a secure link](/api-lens/companies/revoke-a-secure-link).
