Share
Share

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

patch/Share/Modes

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

VibrateStateboolean nullable

New state of CanVibrate, or null for toggle

ShockStateboolean nullable

New state of CanShock, or null for toggle

BeepStateboolean nullable

New state of CanBeep, or null for toggle

Response

Share code should now reflect new CanCreateLinks state.

Changes

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