Share
Share

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

patch/Share/Hold

Request

  • Base URL
    https://api.pishock.com
  • Auth
    • API key in header X-PiShock-Token
    • or API key in header X-PiShock-UserId
    • or API key in header X-PiShock-Server-Key
    • or API key in header X-PiShock-Api-Key

Request body

ShareIdinteger

Id of the share to modify

HoldStateboolean nullable

New state of CanHold, or null for toggle

Response

Share code should now reflect new CanHold state.

Changes

No recorded changes to this operation across all 6 revisions of this API.