---
title: "Update rules for strategy that was created with strategy builder, or just content field"
method: PUT
path: "/autofollow/strategies/{strategyid}/content"
tags: ["Autofollow API"]
---

# Update rules for strategy that was created with strategy builder, or just content field

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

Update rules for strategy that was created with strategy builder, or just content field

## Path parameters

- `strategyid` integer, required

## Request body

- object
  - `strategy` UpdatedStrategyContent
    - `rules` Rules
      - `longentry` Longentry[]
        - `id` string
        - `name` string
        - `validor` integer
        - `validnot` integer
        - `parameters` Parameter[]
          - `default` string
          - `name` string
          - `type` string
          - `start` number
          - `stop` number
          - `step` number
      - `longexit` Longexit[]
        - `id` string
        - `name` string
        - `validor` integer
        - `validnot` integer
        - `parameters` string[]

## Response `200`

Successful operation

- object
  - `strategyid` integer

## Other responses

- `500` — Error

---

[API](https://skmtc.net/tradematic/apis/tradematic-api.md) · [All operations](https://skmtc.net/tradematic/apis/tradematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradematic/tradematic-api/revisions/0af5aabcd3d2/schema)
