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

Documentation Index

Fetch the complete documentation index at: https://docs.trusset.org/llms.txt

Use this file to discover all available pages before exploring further.

Partially updates a hook. Only provided fields are changed.

Path Parameters

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

Body Parameters

All fields from Create Hook are accepted. Only provided fields are updated.
curl -X PUT "https://api.trusset.org/lending-stocks/api/hooks/{marketId}/{hookId}" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"checkFrequency": "15m"}'
{
  "success": true,
  "data": {
    "id": "hook_002",
    "hookType": "monitorRisk",
    "checkFrequency": "15m",
    "active": true
  }
}