Skip to main content
PATCH
/
transcribe
/
workspace
/
{id}
/
transcriptions
/
{transcriptionId}
Edit a transcription
curl --request PATCH \
  --url https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "transcript": {
    "filename": "meeting.mp3",
    "transcript": "Hello world..."
  }
}
'
import requests

url = "https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}"

payload = { "transcript": {
"filename": "meeting.mp3",
"transcript": "Hello world..."
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({transcript: {filename: 'meeting.mp3', transcript: 'Hello world...'}})
};

fetch('https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}",
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([
'transcript' => [
'filename' => 'meeting.mp3',
'transcript' => 'Hello world...'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

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

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}"

payload := strings.NewReader("{\n \"transcript\": {\n \"filename\": \"meeting.mp3\",\n \"transcript\": \"Hello world...\"\n }\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transcript\": {\n \"filename\": \"meeting.mp3\",\n \"transcript\": \"Hello world...\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.pawa-ai.com/v1/transcribe/workspace/{id}/transcriptions/{transcriptionId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transcript\": {\n \"filename\": \"meeting.mp3\",\n \"transcript\": \"Hello world...\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "Transcription updated successfully",
  "data": {
    "id": 1,
    "fileName": "meeting_recording.mp3",
    "fileUrl": "https://storage.domain.com/files/meeting_recording.mp3",
    "fileType": "audio/mpeg",
    "duration": 320,
    "transcript": {
      "filename": "testing audio.mp3",
      "transcript": "[Environmental Sounds]"
    },
    "status": "COMPLETED",
    "createdAt": "2026-02-23T08:00:00.000Z",
    "updatedAt": "2026-02-23T08:10:00.000Z"
  }
}
{
"success": false,
"message": "Invalid input provided"
}
{
"success": false,
"message": "Unauthorized access"
}
{
"success": false,
"message": "You do not have permission to access this resource"
}
{
"success": false,
"message": "Resource does not exist"
}
{
"success": false,
"message": "Rate limit exceeded. Please try again later."
}
{
"success": false,
"message": "Internal server error"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
number
required
transcriptionId
number
required

Body

application/json
transcript
object
required

The manually edited transcript content

Example:
{
"filename": "meeting.mp3",
"transcript": "Hello world..."
}

Response

Transcription updated successfully

success
boolean
required
Example:

true

message
string
required
Example:

"Transcription updated successfully"

data
object
required