Update chatflow details
PUThttps://api.theanswer.ai/v1/chatflows/:id
Update the details of an existing chatflow
Request
Path Parameters
id stringrequired
Chatflow ID
- application/json
Body
idstring
Example:
d290f1ee-6c54-4b01-90e6-d701748f0851
namestring
Example:
MyChatFlow
flowDatastring
Example:
{}
deployedboolean
isPublicboolean
apikeyidstring
chatbotConfigstring
Example:
{}
apiConfigstring
Example:
{}
analyticstring
Example:
{}
speechToTextstring
Example:
{}
categorystring
Example:
category1;category2
typestring
Possible values: [CHATFLOW
, MULTIAGENT
]
createdDatedate-time
Example:
2024-08-24T14:15:22Z
updatedDatedate-time
Example:
2024-08-24T14:15:22Z
Responses
- 200
- 400
- 404
- 500
Chatflow updated successfully
- application/json
- Schema
- Example (auto)
Schema
idstring
Example:
d290f1ee-6c54-4b01-90e6-d701748f0851
namestring
Example:
MyChatFlow
flowDatastring
Example:
{}
deployedboolean
isPublicboolean
apikeyidstring
chatbotConfigstring
Example:
{}
apiConfigstring
Example:
{}
analyticstring
Example:
{}
speechToTextstring
Example:
{}
categorystring
Example:
category1;category2
typestring
Possible values: [CHATFLOW
, MULTIAGENT
]
createdDatedate-time
Example:
2024-08-24T14:15:22Z
updatedDatedate-time
Example:
2024-08-24T14:15:22Z
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"name": "MyChatFlow",
"flowData": "{}",
"deployed": true,
"isPublic": true,
"apikeyid": "string",
"chatbotConfig": "{}",
"apiConfig": "{}",
"analytic": "{}",
"speechToText": "{}",
"category": "category1;category2",
"type": "CHATFLOW",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
The specified ID is invalid or body is missing
Chatflow not found
Internal error
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api.theanswer.ai/v1/chatflows/:id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"id\": \"d290f1ee-6c54-4b01-90e6-d701748f0851\",\n \"name\": \"MyChatFlow\",\n \"flowData\": \"{}\",\n \"deployed\": true,\n \"isPublic\": true,\n \"apikeyid\": \"string\",\n \"chatbotConfig\": \"{}\",\n \"apiConfig\": \"{}\",\n \"analytic\": \"{}\",\n \"speechToText\": \"{}\",\n \"category\": \"category1;category2\",\n \"type\": \"CHATFLOW\",\n \"createdDate\": \"2024-08-24T14:15:22Z\",\n \"updatedDate\": \"2024-08-24T14:15:22Z\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear