---
title: "Update autofollow strategy state"
method: PUT
path: "/autofollow/strategies/{strategyid}/state"
tags: ["Autofollow API"]
---

# Update autofollow strategy state

`PUT /autofollow/strategies/{strategyid}/state`

## Request

- Base URL: `https://api.tradematic.com`
- URL: `https://api.tradematic.com/autofollow/strategies/{strategyid}/state`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/tradematic/apis/tradematic-api/docs/autofollow/strategies/:strategyid/state/put.ts> (a function with typed inputs; its response is checked against the schema)

Update autofollow strategy state

## Path parameters

- `strategyid` integer, required

## Request body

- object
  - `strategy` UpdatedStrategyState
    - `visible` integer
    - `draft` integer

## Response `200`

Successful operation

- object
  - `result` string

## Other responses

- `500`: Error

---

[API](https://skmtc.dev/tradematic/apis/tradematic-api.md) - [All operations](https://skmtc.dev/tradematic/apis/tradematic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tradematic/apis/tradematic-api/revisions/0af5aabcd3d2?raw)
