Apply Slideshow Edits
curl --request POST \
--url https://api.example.com/api/partner/v1/slideshows/{slideshowId}/editsimport requests
url = "https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits', 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://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySlideshows
Apply Slideshow Edits
Save revision-checked edits with a durable idempotency receipt.
POST
/
api
/
partner
/
v1
/
slideshows
/
{slideshowId}
/
edits
Apply Slideshow Edits
curl --request POST \
--url https://api.example.com/api/partner/v1/slideshows/{slideshowId}/editsimport requests
url = "https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits', 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://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/partner/v1/slideshows/{slideshowId}/edits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySend the
The response has the same shape as the edit-state read and includes the resulting revision.
base_revision from Get Slideshow Edit State and one to 50 edits. Idempotency-Key is required; retry a lost response with the same key and identical revision and edits.
Supported operations are update_text, insert_text, remove_text, move_slide, insert_slide, remove_slide, set_slide_image, set_aspect_ratio and rename. Indexes refer to the current zero-based slide/text positions. Text changes support content, position, dimensions and validated appearance settings.
A changed revision returns conflict; reload and review the current deck before creating a new command. Reusing a key with different content also returns conflict. A completed retry returns the original saved result after checking current access, even if its base revision is older. Edits and the receipt commit atomically. Changing slide content invalidates its render; renaming alone preserves it. Unknown stored fields remain intact.
{
"base_revision": "revision-from-the-read",
"edits": [{ "op": "update_text", "slide": 0, "element": 0, "changes": { "content": "A clearer hook" } }]
}
string (UUID)
required
Slideshow id.
