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

# Update conversation variables

`PATCH /state/user/{userID}/variables`

Updates variables in the user's state by merging with the properties in the request body.

## 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

## Response `200`

- 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

---

[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)
