Skip to main content

Update chatflow details

PUT 

https://api.theanswer.ai/v1/chatflows/:id

Update the details of an existing chatflow

Request

Path Parameters

    id stringrequired

    Chatflow ID

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

Chatflow updated successfully

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

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
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());
Request Collapse all
Base URL
https://api.theanswer.ai/v1
Auth
Parameters
— pathrequired
Body
{
  "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"
}
ResponseClear

Click the Send API Request button above and see the response here!