Voiceflow PartnersVPVoiceflow Partners
Powered by
dry-scarletD
Voiceflow Partners•2y ago•
1 reply
dry-scarlet

Cannot Patch Transcript

API - https://developer.voiceflow.com/reference/patch_transcripts-projectid-transcriptid

I am trying to update Name in the trasncript using the API.

I added projectID, transcriptID (both fetch from Fetch Project Transcripts) and name (single or double word)

I used the API key that i used previously to fetch.

I am constnatly getting error.


{
  "code": 500,
  "status": "Internal Server Error",
  "dateTime": "2024-07-08T16:53:05.180Z",
  "timestamp": 1720457585180,
  "data": "Document failed validation"
}

{
  "code": 500,
  "status": "Internal Server Error",
  "dateTime": "2024-07-08T16:53:05.180Z",
  "timestamp": 1720457585180,
  "data": "Document failed validation"
}


<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.voiceflow.com/v2/transcripts/PROJECTID/TRANSCRIPTID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'data' => [
        'name' => 'NAME'
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: API-KEY",
    "accept: application/json",
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.voiceflow.com/v2/transcripts/PROJECTID/TRANSCRIPTID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'data' => [
        'name' => 'NAME'
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: API-KEY",
    "accept: application/json",
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

download transcript
Erik-AndreEErik-Andre / ❓┃ask-a-question
6mo ago
Get transcript
ben.sttBben.stt / ❓┃ask-a-question
7mo ago
Current conversation transcript
hrubasekHhrubasek / ❓┃ask-a-question
7mo ago
missing Transcript and payload
tri55555Ttri55555 / ❓┃ask-a-question
6mo ago