PATCH https://api.cryptohopper.com/v1/hopper/{id}/setdefaulthopper

Makes this hopper the user's default hopper and returns the user's hoppers.

OAuth scope: read manage About scopes

The response is the same list as GET /hopper, with every field of each hopper; the example is shortened.

Example request

curl -X PATCH "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/setdefaulthopper" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

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

Path parameters

NameTypeRequiredDescription
id string Required Hopper ID.

Response

Example response (illustrative values)

{
    "data": {
        "hoppers": [
            {
                "id": "123456",
                "open_positions_count": "3",
                "name": "My BTC bot",
                "exchange": "binance",
                "set_default": "1",
                "enabled": 1
            }
        ]
    }
}

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