POST https://api.cryptohopper.com/v1/subscription/assign

Assigns one of the user's subscriptions to a bot. Use subscription_id 0 for the trial subscription and hopper_id 0 to unassign it.

OAuth scope: read manage About scopes

Example request

curl -X POST "https://api.cryptohopper.com/v1/subscription/assign" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subscription_id":466000,"hopper_id":987654}'

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Response

Example response (illustrative values)

{
    "data": "Subscription has been reassigned."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.