Skip to main content
PATCH
/
api
/
conversation-flows
/
{conversationFlowId}
Update conversation flow
curl --request PATCH \
  --url https://api.upon-ai.com/api/conversation-flows/{conversationFlowId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 123,
  "global_prompt": "<string>",
  "model_choice": {
    "type": "<string>",
    "model": "<string>"
  },
  "nodes": [
    {
      "id": "<string>",
      "type": "<string>",
      "instruction": {
        "type": "<string>",
        "text": "<string>"
      },
      "edges": [
        {
          "id": "<string>",
          "transition_condition": {
            "type": "<string>",
            "prompt": "<string>"
          },
          "destination_node_id": "<string>"
        }
      ]
    }
  ]
}
'
{
  "conversation_flow_id": "<string>",
  "version": 123,
  "start_speaker": "<string>",
  "workspaceId": 123,
  "global_prompt": "<string>",
  "model_choice": {
    "type": "<string>",
    "model": "<string>"
  },
  "nodes": [
    {
      "id": "<string>",
      "type": "<string>",
      "instruction": {
        "type": "<string>",
        "text": "<string>"
      },
      "edges": [
        {
          "id": "<string>",
          "transition_condition": {
            "type": "<string>",
            "prompt": "<string>"
          },
          "destination_node_id": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversationFlowId
string
required

Conversation flow identifier.

Query Parameters

version
integer

Specific version to retrieve or update.

Required range: x >= 1

Body

application/json
workspaceId
integer
required
global_prompt
string
model_choice
object
nodes
object[]

Response

200 - application/json

Updated conversation flow.

conversation_flow_id
string
required
version
integer
required
start_speaker
string | null
workspaceId
integer | null
global_prompt
string | null
model_choice
object
nodes
object[]