Rest API

Set Event End Offset

Set a cutoff for when to stop returning transcripts, in milliseconds, if trimming is needed.

POST /events/{event_id}/set-end-offset

ParameterWhereTypeDefaultDescription
offsetforminteger-The number of milliseconds at which to stop returning transcripts

Response

{
    "status": "success"
}

Code Samples

Bash

curl --request POST \
  --url 'null/api/speech-v1/events/{event_id}/set-end-offset' \
  --header 'X-API-Key: xxx' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'offset=OFFSET'

Python

import requests
requests.post(
    "null/api/speech-v1/events/{event_id}/set-end-offset", 
    headers={"X-API-Key": "xxx"},
    data={
        "offset": OFFSET
    }
)
Previous
Set Event Start ID