Create clip from existing media

Create clip from existing media
FastPix lets you generate new clips directly from existing VOD assets by specifying the media ID and the exact start and end timestamps.
1. Authorization
This token is generated by combining your FastPix Token ID and Secret Key in the format: Token ID:Secret Key, then encoding it in base64.
2. Payload request
1"tok-keyword">curl "tok-flag">--request "tok-keyword">POST \
2 "tok-flag">--url https://api.fastpix.com/v1/media \
3 "tok-flag">--header "tok-string">'accept: application/json' \
4 "tok-flag">--header "tok-string">'authorization: Basic {BASE64_TOKENID:SECRET}' \
5 "tok-flag">--header "tok-string">'content-type: application/json' \
6 "tok-flag">--data '
7{
8 "type": "clip",
9 "title": "Clip from existing media",
10 "source": {
11 "url": "fp_mediaId:123e4567-e89b-12d3-a456-426614174000",
12 "start": 12,
13 "end": 42
14 },
15 "accessPolicy": "public"
16}'