Skip to main content
PATCH
/
stocks
/
api
/
manage
/
token
/
{tokenAddress}
curl -X PATCH "https://api.trusset.org/stocks/api/manage/token/0x1234..." \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "metadataURI": "ipfs://QmUpdated..."
  }'
{
  "success": true,
  "data": {
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "name": "Acme Corp Equity",
    "metadataURI": "ipfs://QmUpdated..."
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Updates the off-chain record for a stock token owned by the authenticated instance. Only the instance that deployed or registered the token can update it. This does not modify on-chain state.

Path Parameters

tokenAddress
string
required
Address of the stock token contract.

Request Body

Accepts any combination of updatable fields. Only provided fields are changed.
metadataURI
string
Updated metadata URI.
name
string
Updated display name.

Response Fields

success
boolean
Request status.
data
object
The updated token record.
curl -X PATCH "https://api.trusset.org/stocks/api/manage/token/0x1234..." \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "metadataURI": "ipfs://QmUpdated..."
  }'
{
  "success": true,
  "data": {
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "name": "Acme Corp Equity",
    "metadataURI": "ipfs://QmUpdated..."
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}