---
title: "Update share link by id"
method: PUT
path: "/shares/{id}"
tags: ["Share Management"]
---

# Update share link by id

`PUT /shares/{id}`

Updates the share with the specified id.

## Path parameters

- `id` string, required

## Request body

- Share
  - `id` string, required
  - `resource_id` string, uuid, required
  - `user_id` string, nullable
  - `expiration_dt` string, date-time, nullable
  - `is_revoked` boolean

## Response `200`

OK

## Changes

- **2024-10-03** `682d4cb5d0dc` — 2 warning
  - changed the pattern of the `path` request parameter `id` from `^[a-z]{3}-[a-z]{3}-[a-z]{3}$` to `^[a-z]{4}-[a-z]{4}-[a-z]{4}$`
  - changed the pattern of the request property `id` from `^[a-z]{3}-[a-z]{3}-[a-z]{3}$` to `^[a-z]{4}-[a-z]{4}-[a-z]{4}$`
- **2024-10-02** `c9062e3a3c54` — 2 warning
  - changed the pattern of the `path` request parameter `id` from `^[a-z]{4}-[a-z]{4}-[a-z]{4}$` to `^[a-z]{3}-[a-z]{3}-[a-z]{3}$`
  - changed the pattern of the request property `id` from `^[a-z]{4}-[a-z]{4}-[a-z]{4}$` to `^[a-z]{3}-[a-z]{3}-[a-z]{3}$`
- **2024-10-02** `936529d30a41` — 2 warning
  - changed the pattern of the `path` request parameter `id` from `^[a-z]{3}-[a-z]{3}-[a-z]{3}$` to `^[a-z]{4}-[a-z]{4}-[a-z]{4}$`
  - changed the pattern of the request property `id` from `^[a-z]{3}-[a-z]{3}-[a-z]{3}$` to `^[a-z]{4}-[a-z]{4}-[a-z]{4}$`
- **2024-09-04** `5b0faf0cb344` — 4 info
  - the request property `expiration_dt` became nullable
  - the request property `user_id` became nullable
  - removed the pattern `^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$` from the request property `user_id`
  - the `user_id` request property format was generalized from `uuid` to no format
- **2024-06-04** `578e8efc5755` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/changes/shares/:id/put.md)

---

[API](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api.md) · [All operations](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pai-os/personal-artificial-intelligence-operating-system-pai-os-api/revisions/3c144b366e19/schema)
