Update a carousel
curl --request PATCH \
--url https://app.autoposting.ai/api-proxy/carousels/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "5 Growth Hacks for 2025",
"slides": [
{
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": "<string>"
}
]
}
'import requests
url = "https://app.autoposting.ai/api-proxy/carousels/{id}"
payload = {
"title": "5 Growth Hacks for 2025",
"slides": [
{
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '5 Growth Hacks for 2025',
slides: [
{
title: 'Hook',
body: JSON.stringify('Most founders ignore this...'),
imageUrl: '<string>'
}
]
})
};
fetch('https://app.autoposting.ai/api-proxy/carousels/{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://app.autoposting.ai/api-proxy/carousels/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '5 Growth Hacks for 2025',
'slides' => [
[
'title' => 'Hook',
'body' => 'Most founders ignore this...',
'imageUrl' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.autoposting.ai/api-proxy/carousels/{id}"
payload := strings.NewReader("{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://app.autoposting.ai/api-proxy/carousels/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.autoposting.ai/api-proxy/carousels/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "car_01HXYZ",
"brandSlug": "acme-corp",
"title": "5 Growth Hacks for 2025",
"slides": [
{
"id": "slide_01",
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": null,
"order": 0
}
],
"design": null,
"status": "draft",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
}{
"success": false,
"error": "Unauthorized",
"message": "Authentication required."
}Carousels
Update a carousel
PATCH
/
carousels
/
{id}
Update a carousel
curl --request PATCH \
--url https://app.autoposting.ai/api-proxy/carousels/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "5 Growth Hacks for 2025",
"slides": [
{
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": "<string>"
}
]
}
'import requests
url = "https://app.autoposting.ai/api-proxy/carousels/{id}"
payload = {
"title": "5 Growth Hacks for 2025",
"slides": [
{
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '5 Growth Hacks for 2025',
slides: [
{
title: 'Hook',
body: JSON.stringify('Most founders ignore this...'),
imageUrl: '<string>'
}
]
})
};
fetch('https://app.autoposting.ai/api-proxy/carousels/{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://app.autoposting.ai/api-proxy/carousels/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '5 Growth Hacks for 2025',
'slides' => [
[
'title' => 'Hook',
'body' => 'Most founders ignore this...',
'imageUrl' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.autoposting.ai/api-proxy/carousels/{id}"
payload := strings.NewReader("{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://app.autoposting.ai/api-proxy/carousels/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.autoposting.ai/api-proxy/carousels/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"5 Growth Hacks for 2025\",\n \"slides\": [\n {\n \"title\": \"Hook\",\n \"body\": \"Most founders ignore this...\",\n \"imageUrl\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "car_01HXYZ",
"brandSlug": "acme-corp",
"title": "5 Growth Hacks for 2025",
"slides": [
{
"id": "slide_01",
"title": "Hook",
"body": "Most founders ignore this...",
"imageUrl": null,
"order": 0
}
],
"design": null,
"status": "draft",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
}{
"success": false,
"error": "Unauthorized",
"message": "Authentication required."
}Authorizations
bearerAuthapiKeyHeader
API key as Authorization: Bearer sk-social-...
Path Parameters
Carousel ID.
Example:
"car_01HXYZ"
Body
application/json
Was this page helpful?
⌘I

