---
title: "Sets whether or not the share can create links."
method: PATCH
path: "/Share/Link"
tags: ["Share", "Share"]
---

# Sets whether or not the share can create links.

`PATCH /Share/Link`

## Request body

- SetLinkCreationStateRequest — Creates a new share code for a given shocker.
  - `ShareId` integer — Id of the share to modify
  - `LinkCreationState` boolean, nullable — New state of CanCreateLinks, or null for toggle

## Response `204`

Share code should now reflect new CanCreateLinks state.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.dev/pishock/apis/pishock-public-api-v1.md) · [All operations](https://skmtc.dev/pishock/apis/pishock-public-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pishock/pishock-public-api-v1/revisions/271272058af7/schema)
