---
title: "Updates a file link"
method: POST
path: "/file-links/{id}"
tags: ["FileLinks"]
---

# Updates a file link

`POST /file-links/{id}`

Updates an existing file link. Expired links can no longer be updated.

## Path parameters

- `id` string, required

## Request body

- UpdateFileLinkRequest
  - `expiresTime` string, date-time, required — A future timestamp, after which the link will no longer be usable.

## Response `200`

OK.

- FileLink
  - `id` string — Unique identifier for the file link.
  - `createdTime` string, date-time — Time when the file link was created.
  - `expired` boolean — Whether this link has already expired.
  - `expiresTime` string, date-time — Time at which the link expires.
  - `fileId` string — The file object this link points to.
  - `liveMode` boolean — Has the value true if the object exists in live mode or the value false if the object exists in test mode.
  - `metadata` Metadata — Key-value pairs used to store additional data. Value can be string, boolean or integer types.
  - `url` string — The publicly accessible URL to download the file.

## Other responses

- `400` — 400 Bad Request
- `401` — 401 Unauthorized
- `403` — 403 Forbidden
- `404` — 401 Not Found
- `405` — 405 Method Not Allowed
- `406` — 406 Not Acceptable
- `408` — 408 Request Timeout
- `409` — 409 Conflict
- `429` — 429 Too Many Requests
- `500` — 500 Internal Server Error
- `502` — 502 Bad Gateway Error
- `503` — 503 Service Unavailable Error
- `504` — 504 Gateway Timeout Error

---

[API](https://skmtc.net/digitalriver/apis/digital-river-api-reference.md) · [All operations](https://skmtc.net/digitalriver/apis/digital-river-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalriver/digital-river-api-reference/revisions/f21981db32be/schema)
