curl --request PATCH \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/context \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"contextHintUserEdited": "A sunscreen commercial for ACE SUN SPORT; SPF 50 is a product specification."
}
'{
"contextHint": "This is a sunscreen commercial for a product called 'ACE SUN SPORT'.",
"contextHintUserEdited": "A sunscreen commercial for ACE SUN SPORT; SPF 50 is a product specification.",
"scenes": [
{
"description": "A solid green background is displayed.",
"start": 0,
"end": 1
}
],
"generatedAt": "2026-11-10T19:08:01.040Z"
}Recordings
Edit the video context
Correct what Studio detected in the video, for example a product name or a number that was misread. The detected text contextHint is kept; your version contextHintUserEdited is stored next to it and is the one to use. Send null to remove your version again. Only recordings that were analysed have a context, the others answer 404 with the reason. Needs write access to the transcription step. Answers with the context as it is afterwards.
PATCH
/
v1
/
projects
/
{projectId}
/
recordings
/
{recordingId}
/
context
curl --request PATCH \
--url https://api.studio.us.phrase.com/v1/projects/{projectId}/recordings/{recordingId}/context \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"contextHintUserEdited": "A sunscreen commercial for ACE SUN SPORT; SPF 50 is a product specification."
}
'{
"contextHint": "This is a sunscreen commercial for a product called 'ACE SUN SPORT'.",
"contextHintUserEdited": "A sunscreen commercial for ACE SUN SPORT; SPF 50 is a product specification.",
"scenes": [
{
"description": "A solid green background is displayed.",
"start": 0,
"end": 1
}
],
"generatedAt": "2026-11-10T19:08:01.040Z"
}Authorizations
Body
application/json
Response
The context after the change
What the video shows, produced by analysing the video during transcription.
Was this page helpful?