Edit Media Profile API Endpoint
curl --request PUT \
--url https://backend.clipvision.ai/api/media-profile/edit/ \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"media_profile_id": 123,
"profile_name": "<string>",
"watermark_position": 123,
"preview_url": "<string>"
}
'import requests
url = "https://backend.clipvision.ai/api/media-profile/edit/"
payload = {
"media_profile_id": 123,
"profile_name": "<string>",
"watermark_position": 123,
"preview_url": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
media_profile_id: 123,
profile_name: '<string>',
watermark_position: 123,
preview_url: '<string>'
})
};
fetch('https://backend.clipvision.ai/api/media-profile/edit/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.clipvision.ai/api/media-profile/edit/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'media_profile_id' => 123,
'profile_name' => '<string>',
'watermark_position' => 123,
'preview_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.clipvision.ai/api/media-profile/edit/"
payload := strings.NewReader("{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://backend.clipvision.ai/api/media-profile/edit/")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.clipvision.ai/api/media-profile/edit/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"media_profile_id": 1,
"disabled": false,
"profile_name": "New Media Profile",
"watermark_path": null,
"watermark_position": null,
"end_clip_path": null,
"preview_url": null
}This response has no body data.{
"success": false,
"error": "Internal Server Error"
}api
Edit Media Profile API Endpoint
This API endpoint allows a user to edit an existing media profile.
PUT
/
api
/
media-profile
/
edit
/
Edit Media Profile API Endpoint
curl --request PUT \
--url https://backend.clipvision.ai/api/media-profile/edit/ \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"media_profile_id": 123,
"profile_name": "<string>",
"watermark_position": 123,
"preview_url": "<string>"
}
'import requests
url = "https://backend.clipvision.ai/api/media-profile/edit/"
payload = {
"media_profile_id": 123,
"profile_name": "<string>",
"watermark_position": 123,
"preview_url": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
media_profile_id: 123,
profile_name: '<string>',
watermark_position: 123,
preview_url: '<string>'
})
};
fetch('https://backend.clipvision.ai/api/media-profile/edit/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.clipvision.ai/api/media-profile/edit/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'media_profile_id' => 123,
'profile_name' => '<string>',
'watermark_position' => 123,
'preview_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.clipvision.ai/api/media-profile/edit/"
payload := strings.NewReader("{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://backend.clipvision.ai/api/media-profile/edit/")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.clipvision.ai/api/media-profile/edit/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"media_profile_id\": 123,\n \"profile_name\": \"<string>\",\n \"watermark_position\": 123,\n \"preview_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"media_profile_id": 1,
"disabled": false,
"profile_name": "New Media Profile",
"watermark_path": null,
"watermark_position": null,
"end_clip_path": null,
"preview_url": null
}This response has no body data.{
"success": false,
"error": "Internal Server Error"
}Authorizations
Basicapi_key
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Available options:
, local_files/watermarks/placeholder.png Available options:
, local_files/endclips/placeholder.mp4 Minimum string length:
1Minimum string length:
1⌘I