curl --request POST \
--url https://test.deribit.com/api/v2/private/toggle_notifications_from_subaccount \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 9995,
"method": "private/toggle_notifications_from_subaccount",
"params": {
"sid": 7,
"state": true
}
}'{
"jsonrpc": "2.0",
"id": 9995,
"result": "ok"
}private/toggle_notifications_from_subaccount
Saves a subaccount’s preference for forwarding copies of its notification emails to the main account’s email address. It does not stop the subaccount from receiving its own emails.
When forwarding is active, forwarded copies exclude the registration welcome email and mask activation and password-change links. Their title is Notification for subaccount: <name> - <original title>.
Known limitation: changing this setting currently has no effect on forwarding, and receive_notifications (returned by private/get_subaccounts, private/create_subaccount, and by private/get_account_summary / private/get_account_summaries with extended = true) does not reflect it. A successful response only confirms that the request was accepted.
Access & Restrictions:
- Must be called by the main account that owns the subaccount (
sid). The target must be an owned subaccount, not the main account itself. An invalid target is rejected with13009(unauthorized); a removed subaccount returns13009withdata.reason=already_removed. Vault subaccounts are rejected with14049. - Also rejected for accounts without subaccount management (
13009) and locked accounts (11098). - Send
stateas a JSON boolean. Do not rely on rejection of other types: the current implementation may coerce them to a boolean.
📖 Related Article: Managing Subaccounts
Scope: account:read_write
curl --request POST \
--url https://test.deribit.com/api/v2/private/toggle_notifications_from_subaccount \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 9995,
"method": "private/toggle_notifications_from_subaccount",
"params": {
"sid": 7,
"state": true
}
}'{
"jsonrpc": "2.0",
"id": 9995,
"result": "ok"
}Query Parameters
Was this page helpful?