# Change the image of a strategy

`POST https://api.cryptohopper.com/v1/strategy/{strategy_id}/changeimage`

Part of [Strategies](https://www.cryptohopper.com/api-documentation/api-reference/strategies.md) in the Cryptohopper API reference.

Replaces the image of one of the user's own strategies. The image is cropped to 600 by 430 pixels, stored as JPEG and its new URL is returned.

image is the image file encoded as base64. Needs a valid access token, but no specific scope.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `strategy_id` | string | yes | ID of the strategy. |

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/strategy/STRATEGY_ID/changeimage" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image":"/9j/4AAQSkZJRgABAQAAAQABAAD..."}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "https://cdn.cryptohopper.com/images/strategies/user/369000_2026-09-25-14-02-11.jpg"
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
