jsonUrl, trims it to themarkIn–markOut window (milliseconds relative to the timeline origin), uploadsmarkOut must be strictly greater than markIn.s3://<Bucket>/<uploadPath>/<fileName>_<timestamp>_<duration>.json.Bucket or uploadPath are omitted, the service attempts to derive the destinationjsonUrl's bucket/path. fileName is treated as a base name; do not.json unless that text should be part of the generated base name.| Code | Message | Cause |
|---|---|---|
0 | success | Trimmed JSON is available at jsonUrl |
3001 | The json/hls link exception, please check. | jsonUrl is unreachable or returns an invalid response |
3002 | The json content format exception, please check. | JSON content does not match expected format |
3003 | Failed parsing or initialization of JSON's bucket, please contact the developer to check. | Cannot determine or connect to the destination bucket from the JSON URL |
3004 | Newly generated json upload failed, please contact the developer to check. | Trimmed JSON file failed to upload to S3 |
curl --location 'https://api.tvunetworks.com/cut-json' \
--header 'SID: 92575d36dcb631ac94745e6b157de17a5a13d65b31e44869f06854ab928dd80235d4daae8696b4a92a7be5f802c45a219648701fc9ca59f44e9c0f022d5d38a7' \
--header 'Content-Type: application/json' \
--data '{
"jsonUrl": "https://mma-video-new.s3.us-east-1.amazonaws.com/export/story.json",
"markIn": 5000,
"markOut": 65000,
"fileName": "story_trimmed",
"Bucket": "media-export-bucket",
"Region": "us-east-1",
"uploadPath": "trimmed/"
}'{
"errorCode": 0,
"errorMessage": "success",
"jsonUrl": "https://media-export-bucket.s3.us-east-1.amazonaws.com/trimmed/story_trimmed_20231114_120000_60000.json"
}