Replace Connection
curl --request PUT \
--url https://console.interactivelayers.com/v1/connections/{connection_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"provider": "generic",
"config": {
"allowed_media_hosts": [
"<string>"
],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"expected_revision": 2
}
'import requests
url = "https://console.interactivelayers.com/v1/connections/{connection_id}"
payload = {
"provider": "generic",
"config": {
"allowed_media_hosts": ["<string>"],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"expected_revision": 2
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
provider: 'generic',
config: {
allowed_media_hosts: ['<string>'],
feed_url: '<string>',
feed_credential_ref: '<string>',
resolver_ref: '<string>'
},
name: '<string>',
expected_revision: 2
})
};
fetch('https://console.interactivelayers.com/v1/connections/{connection_id}', 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://console.interactivelayers.com/v1/connections/{connection_id}",
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([
'provider' => 'generic',
'config' => [
'allowed_media_hosts' => [
'<string>'
],
'feed_url' => '<string>',
'feed_credential_ref' => '<string>',
'resolver_ref' => '<string>'
],
'name' => '<string>',
'expected_revision' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://console.interactivelayers.com/v1/connections/{connection_id}"
payload := strings.NewReader("{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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://console.interactivelayers.com/v1/connections/{connection_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/connections/{connection_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}"
response = http.request(request)
puts response.read_body{
"provider": "generic",
"config": {
"catalog_mode": "push",
"allowed_media_hosts": [
"<string>"
],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"connection_id": "<string>",
"revision": 2,
"status": "needs_validation",
"capabilities": {
"inventory": "unverified",
"metadata": "unverified",
"media_read": "unverified",
"renewable_source": "unverified",
"immutable_version": "unverified",
"hls": "unverified",
"checked_at": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"last_error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"provider_status": 123,
"stage": "<string>",
"occurred_at": "<string>"
},
"external_id": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Reemplazar una conexión de contenido
PUT
/
v1
/
connections
/
{connection_id}
Replace Connection
curl --request PUT \
--url https://console.interactivelayers.com/v1/connections/{connection_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"provider": "generic",
"config": {
"allowed_media_hosts": [
"<string>"
],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"expected_revision": 2
}
'import requests
url = "https://console.interactivelayers.com/v1/connections/{connection_id}"
payload = {
"provider": "generic",
"config": {
"allowed_media_hosts": ["<string>"],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"expected_revision": 2
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
provider: 'generic',
config: {
allowed_media_hosts: ['<string>'],
feed_url: '<string>',
feed_credential_ref: '<string>',
resolver_ref: '<string>'
},
name: '<string>',
expected_revision: 2
})
};
fetch('https://console.interactivelayers.com/v1/connections/{connection_id}', 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://console.interactivelayers.com/v1/connections/{connection_id}",
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([
'provider' => 'generic',
'config' => [
'allowed_media_hosts' => [
'<string>'
],
'feed_url' => '<string>',
'feed_credential_ref' => '<string>',
'resolver_ref' => '<string>'
],
'name' => '<string>',
'expected_revision' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://console.interactivelayers.com/v1/connections/{connection_id}"
payload := strings.NewReader("{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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://console.interactivelayers.com/v1/connections/{connection_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.interactivelayers.com/v1/connections/{connection_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"generic\",\n \"config\": {\n \"allowed_media_hosts\": [\n \"<string>\"\n ],\n \"feed_url\": \"<string>\",\n \"feed_credential_ref\": \"<string>\",\n \"resolver_ref\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"expected_revision\": 2\n}"
response = http.request(request)
puts response.read_body{
"provider": "generic",
"config": {
"catalog_mode": "push",
"allowed_media_hosts": [
"<string>"
],
"feed_url": "<string>",
"feed_credential_ref": "<string>",
"resolver_ref": "<string>"
},
"name": "<string>",
"connection_id": "<string>",
"revision": 2,
"status": "needs_validation",
"capabilities": {
"inventory": "unverified",
"metadata": "unverified",
"media_read": "unverified",
"renewable_source": "unverified",
"immutable_version": "unverified",
"hls": "unverified",
"checked_at": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"last_error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"provider_status": 123,
"stage": "<string>",
"occurred_at": "<string>"
},
"external_id": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "<string>",
"retryable": true,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Autorizaciones
Cuerpo
application/json
- ReplaceConnectionGeneric
- ReplaceConnectionJw
- ReplaceConnectionS3
- ReplaceConnectionGcs
- ReplaceConnectionAkamai
- ReplaceConnectionFastly
- ReplaceConnectionFastlyS3
Respuesta
Successful Response
- ConnectionGeneric
- ConnectionJw
- ConnectionS3
- ConnectionGcs
- ConnectionAkamai
- ConnectionFastly
- ConnectionFastlyS3