Subscriptions
Update a price watch
Update the configurable fields of one price watch owned by the authenticated account.
patch/v1/subscriptions/{id}
Path parameters
idstring required
Example:018f47a2-4d4d-7a44-9fa4-123456789abc
Resource identifier.
Request body
Example request
{
"name": "My energy watch",
"codes": [
"WTI_USD"
],
"code": "WTI_USD",
"interval_seconds": 900,
"deliver_webhook": true,
"status": "active"
}Response
Subscription updated
Example response
{
"status": "success",
"data": {
"subscription": {
"id": "018f47a2-4d4d-7a44-9fa4-123456789abc",
"name": "My WTI watch",
"codes": [
"WTI_USD",
"BRENT_CRUDE_USD"
],
"interval_seconds": 3600,
"status": "active",
"source": "api",
"tool_name": "watch_commodity"
}
}
}