Skip to main content
POST
/
lending-stocks
/
api
/
hooks
/
{marketId}
/
{hookId}
/
toggle
curl -X POST "https://api.trusset.org/lending-stocks/api/hooks/{marketId}/{hookId}/toggle" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"active": false}'
{
  "success": true,
  "data": {
    "id": "hook_002",
    "active": false
  }
}

Path Parameters

marketId
string
required
Market ID.
hookId
string
required
Hook ID.

Body Parameters

active
boolean
required
Set to true to enable, false to disable.
curl -X POST "https://api.trusset.org/lending-stocks/api/hooks/{marketId}/{hookId}/toggle" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"active": false}'
{
  "success": true,
  "data": {
    "id": "hook_002",
    "active": false
  }
}