Check SSAI Transcode Profile
Push zones only. Read-only check of which Video Encoding Profiles a chosen SSAI transcoding profile needs, which already exist, and whether the resulting Combined profile is already linked to the zone's Auto Video Encoding Profile. Creates or links nothing.
curl -X POST "https://api.5centscdn.com/v2/zones/vod/push/42/adinsertion/transcodeprofile/check" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"transcodingProfileId": 42
}'
import requests
import json
url = "https://api.5centscdn.com/v2/zones/vod/push/42/adinsertion/transcodeprofile/check"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"transcodingProfileId": 42
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/zones/vod/push/42/adinsertion/transcodeprofile/check", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"transcodingProfileId": 42
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"transcodingProfileId": 42
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/zones/vod/push/42/adinsertion/transcodeprofile/check", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/zones/vod/push/42/adinsertion/transcodeprofile/check')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"transcodingProfileId": 42
}'
response = http.request(request)
puts response.body
{
"result": "success",
"combinedName": "5Q-L1-24fps-128kbps-44.1kHz",
"singleProfilesNeeded": [
"example_string"
],
"combinedNeeded": true,
"alreadyLinked": true,
"existingProfiles": [
"example_string"
],
"existingProfilesCount": 0
}
/zones/vod/push/{zoneid}/adinsertion/transcodeprofile/checkTarget server for requests. Edit to use your own host.
API key (sent in header)
Zone ID
The media type of the request body
SSAI transcoding profile ID from the SSAI catalog.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Body
Responses
successerrorName of the Combined Video Encoding Profile this SSAI profile maps to.
Encoding rungs that do not yet exist and would be created by Apply.
Whether the Combined profile row does not exist yet.
Whether the Combined profile is already linked to the zone's Auto Video Encoding Profile.
Other Combined profiles already linked to this zone, excluding this one.