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

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

`PATCH /Share/Modes`

## Request body

- SetShareOperationModesRequest — Creates a new share code for a given shocker.
  - `ShareId` integer — Id of the share to modify
  - `VibrateState` boolean, nullable — New state of CanVibrate, or null for toggle
  - `ShockState` boolean, nullable — New state of CanShock, or null for toggle
  - `BeepState` boolean, nullable — New state of CanBeep, 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)
