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
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.
requests full type
requests full type
writeControl full type
writeControl full type
replies full type
replies full type
writeControl full type
writeControl full type
Elements
createImage
elements.createImage
Add an image to a slide from a public URL
Risk: write
elementProperties full type
elementProperties full type
createShape
elements.createShape
Add a shape or text box to a slide
Risk: write
elementProperties full type
elementProperties full type
createTable
elements.createTable
Add an empty table to a slide
Risk: write
elementProperties full type
elementProperties full type
group
elements.group
Group page elements into one object
Risk: write
Output
setAltText
elements.setAltText
Set the alt text on a page element
Risk: write
Output
ungroup
elements.ungroup
Ungroup previously grouped page elements
Risk: write
Output
updateTransform
elements.updateTransform
Move, scale or rotate a page element
Risk: write
transform full type
transform full type
zOrder
elements.zOrder
Change which elements sit in front of others
Risk: write
Output
Presentations
copy
presentations.copy
Copy a presentation to a new file
Risk: write
Output
comments full type
comments full type
create
presentations.create
Create a blank presentation
Risk: write
Output
comments full type
comments full type
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
Output
exportPdf
presentations.exportPdf
Export a presentation to PDF or PPTX as base64
Risk: read
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
Output
comments full type
comments full type
list
presentations.list
List presentations in Drive, filtered and paged
Risk: read
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
files full type
files full type
Slides
create
slides.create
Add a slide from a predefined or named layout
Risk: write
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
Output
get
slides.get
Read one slide with its page elements
Risk: read
Output
pageElements full type
pageElements full type
getNotes
slides.getNotes
Read the speaker notes on a slide
Risk: read
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
Output
list
slides.list
List the slides in a presentation, in order
Risk: read
Output
slides full type
slides full type
move
slides.move
Move slides to a new position
Risk: write
Output
remove
slides.remove
Delete a slide from a presentation [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
Output
setNotes
slides.setNotes
Replace the speaker notes on a slide
Risk: write
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
Output
Text
createBullets
text.createBullets
Turn paragraphs into a bulleted or numbered list
Risk: write
textRange full type
textRange full type
cellLocation full type
cellLocation full type
delete
text.delete
Delete a range of text from a shape or table cell
Risk: destructive
Deleting across a paragraph boundary can change paragraph styles and lists, because the two paragraphs merge.
textRange full type
textRange full type
cellLocation full type
cellLocation full type
insert
text.insert
Insert text into a shape or table cell
Risk: write
cellLocation full type
cellLocation full type
removeBullets
text.removeBullets
Remove list formatting from paragraphs
Risk: write
textRange full type
textRange full type
cellLocation full type
cellLocation full type
replaceAll
text.replaceAll
Find and replace text across slides, by string or regex
Risk: write
Output
updateStyle
text.updateStyle
Apply text styling such as bold, size or colour
Risk: write
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.
textRange full type
textRange full type
style full type
style full type
cellLocation full type
cellLocation full type