Skip to main content
New to Corsair? See API access, authentication, and error handling.

Batch

update

batch.update Apply raw Slides batchUpdate requests atomically, for operations without a typed endpoint. Deletions are refused; use the typed operation. Risk: destructive · Irreversible
Input Accepts any of the 49 batchUpdate request types except the deletions. deleteObject, deleteText, deleteTableRow, deleteTableColumn, deleteParagraphBullets, deleteComment and deleteCommentReply are refused before the request is sent, because this endpoint cannot attribute them to the destructive approval that slides.remove and text.delete carry. Google validates every request before applying any, so an invalid entry fails the whole batch.
Output

Elements

createImage

elements.createImage Add an image to a slide from a public URL Risk: write
Input
Output

createShape

elements.createShape Add a shape or text box to a slide Risk: write
Input
Output

createTable

elements.createTable Add an empty table to a slide Risk: write
Input
Output

group

elements.group Group page elements into one object Risk: write
Input Output

setAltText

elements.setAltText Set the alt text on a page element Risk: write
Input Output

ungroup

elements.ungroup Ungroup previously grouped page elements Risk: write
Input Output

updateTransform

elements.updateTransform Move, scale or rotate a page element Risk: write
Input
Output

zOrder

elements.zOrder Change which elements sit in front of others Risk: write
Input Output

Presentations

copy

presentations.copy Copy a presentation to a new file Risk: write
Input Output

create

presentations.create Create a blank presentation Risk: write
Input Output

delete

presentations.delete Permanently delete a presentation from Drive, without using the trash; refuses any file that is not a presentation [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output

exportPdf

presentations.exportPdf Export a presentation to PDF or PPTX as base64 Risk: read
Input Export returns base64 file bytes. A large deck takes longer than the default request timeout, so this call allows three minutes. Output

get

presentations.get Read a presentation with slide and layout counts Risk: read
Input Output

list

presentations.list List presentations in Drive, filtered and paged Risk: read
Input The Drive query is a conjunction. Your filter is wrapped in parentheses and joined with a presentation MIME-type constraint and trashed = false, so an or filter cannot widen the result past presentations. Output

Slides

create

slides.create Add a slide from a predefined or named layout Risk: write
Input layoutId wins over layout when both are given. The reply reports the layout Google actually applied, which differs from the request when the named layout is missing from the current master. Output

duplicate

slides.duplicate Duplicate a slide Risk: write
Input Output

get

slides.get Read one slide with its page elements Risk: read
Input Output

getNotes

slides.getNotes Read the speaker notes on a slide Risk: read
Input The text comes from the notes page. Google terminates every shape with a newline, and that trailing newline is removed. Output

getThumbnail

slides.getThumbnail Get a signed thumbnail URL for a slide, valid 30 minutes Risk: read
Input Output

list

slides.list List the slides in a presentation, in order Risk: read
Input Output

move

slides.move Move slides to a new position Risk: write
Input Output

remove

slides.remove Delete a slide from a presentation [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output

setNotes

slides.setNotes Replace the speaker notes on a slide Risk: write
Input Replaces the notes rather than appending. The slide is read first for the notes shape id; without one, the call throws and explains that the shape does not exist yet. Output

setSkipped

slides.setSkipped Mark a slide skipped or unskipped in presentation mode Risk: write
Input Output

Text

createBullets

text.createBullets Turn paragraphs into a bulleted or numbered list Risk: write
Input
Output

delete

text.delete Delete a range of text from a shape or table cell Risk: destructive
Input Deleting across a paragraph boundary can change paragraph styles and lists, because the two paragraphs merge.
Output

insert

text.insert Insert text into a shape or table cell Risk: write
Input
Output

removeBullets

text.removeBullets Remove list formatting from paragraphs Risk: write
Input
Output

replaceAll

text.replaceAll Find and replace text across slides, by string or regex Risk: write
Input Output

updateStyle

text.updateStyle Apply text styling such as bold, size or colour Risk: write
Input Only the properties named in fields change. A property named in fields but absent from style is reset to its default, which is how to clear a style.
Output