---
title: "Update conversation state"
method: PUT
path: "/state/user/{userID}"
tags: ["State", "Public-Docs"]
---

# Update conversation state

`PUT /state/user/{userID}`

Replace the current state of the user's conversation.

## Path parameters

- `userID` string, required — An ID which uniquely identifies the user having the conversation.

## Headers

- `projectID` string, required — ID of the target Voiceflow project.
- `versionID` string — ID or alias of the target environment.

## Request body

- object
  - `turn` object
  - `stack` object[], required
    - `nodeID` string, nullable
    - `diagramID` string, required
    - `name` string, nullable
    - `storage` object, required
    - `variables` object, required
    - `commands` object[]
      - `type` string, required
    - `dynamicCommands` object
  - `variables` object, required
  - `storage` object, required

## Response `200`

---

[API](https://skmtc.net/voiceflow/apis/general-runtime.md) · [All operations](https://skmtc.net/voiceflow/apis/general-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voiceflow/general-runtime/versions/6b1c4f778c56/schema)
