---
title: "Sets the allowed modes on the share (shock/vibrate/beep)"
method: PATCH
path: "/Share/Hold"
tags: ["Share", "Share"]
---

# Sets the allowed modes on the share (shock/vibrate/beep)

`PATCH /Share/Hold`

## Request body

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

## Response `204`

Share code should now reflect new CanHold 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)
