Rest API
Set Event Start ID
Set the beginning transcript ID for an event, if trimming is needed.
POST /events/{event_id}/set-start-transcript-id
Parameter | Where | Type | Default | Description |
---|---|---|---|---|
transcript_id | form | integer | - | The transcript ID to set as the beginning of the event |
Response
{
"status": "success"
}
Code Samples
Bash
curl --request POST \
--url 'null/api/speech-v1/events/{event_id}/set-start-transcript-id' \
--header 'X-API-Key: xxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'transcript_id=ID'
Python
import requests
requests.post(
"null/api/speech-v1/events/{event_id}/set-start-transcript-id",
headers={"X-API-Key": "xxx"},
data={
"transcript_id": ID
}
)