Search + K

Command Palette

Search for a command to run...

Sign In

slides.presentations.batchUpdate

POST /v1/presentations/{presentationId}:batchUpdate
Copy endpoint
https://slides.googleapis.com/

Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies: the reply to the third request, and another empty reply, in that order. Because other users may be editing the presentation, the presentation might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the presentation should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.

Parameters

path Path Parameters

Name Type
presentationId required

The presentation to apply the updates to.

string

query Query Parameters

Name Type
upload_protocol

Upload protocol for media (e.g. "raw", "multipart").

string
alt

Data format for response.

"json" | "media" | "proto"
callback

JSONP

string
uploadType

Legacy upload protocol for media (e.g. "media", "multipart").

string
oauth_token

OAuth 2.0 token for the current user.

string
access_token

OAuth access token.

string
$.xgafv

V1 error format.

"1" | "2"
key

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

string
fields

Selector specifying which fields to include in a partial response.

string
prettyPrint

Returns response with indentations and line breaks.

boolean
quotaUser

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

string

Request Body

application/json
interface BatchUpdatePresentationRequest {
requests?: Request

A single kind of update to apply to a presentation.

interface Request {
createImage?: CreateImageRequest;
createLine?: CreateLineRequest;
createParagraphBullets?: CreateParagraphBulletsRequest;
createShape?: CreateShapeRequest;
createSheetsChart?: CreateSheetsChartRequest;
createSlide?: CreateSlideRequest;
createTable?: CreateTableRequest;
createVideo?: CreateVideoRequest;
deleteObject?: DeleteObjectRequest;
deleteParagraphBullets?: DeleteParagraphBulletsRequest;
deleteTableColumn?: DeleteTableColumnRequest;
deleteTableRow?: DeleteTableRowRequest;
deleteText?: DeleteTextRequest;
duplicateObject?: DuplicateObjectRequest;
groupObjects?: GroupObjectsRequest;
insertTableColumns?: InsertTableColumnsRequest;
insertTableRows?: InsertTableRowsRequest;
insertText?: InsertTextRequest;
mergeTableCells?: MergeTableCellsRequest;
refreshSheetsChart?: RefreshSheetsChartRequest;
replaceAllShapesWithImage?: ReplaceAllShapesWithImageRequest;
replaceAllShapesWithSheetsChart?: ReplaceAllShapesWithSheetsChartRequest;
replaceAllText?: ReplaceAllTextRequest;
replaceImage?: ReplaceImageRequest;
rerouteLine?: RerouteLineRequest;
ungroupObjects?: UngroupObjectsRequest;
unmergeTableCells?: UnmergeTableCellsRequest;
updateImageProperties?: UpdateImagePropertiesRequest;
updateLineCategory?: UpdateLineCategoryRequest;
updateLineProperties?: UpdateLinePropertiesRequest;
updatePageElementAltText?: UpdatePageElementAltTextRequest;
updatePageElementTransform?: UpdatePageElementTransformRequest;
updatePageElementsZOrder?: UpdatePageElementsZOrderRequest;
updatePageProperties?: UpdatePagePropertiesRequest;
updateParagraphStyle?: UpdateParagraphStyleRequest;
updateShapeProperties?: UpdateShapePropertiesRequest;
updateSlideProperties?: UpdateSlidePropertiesRequest;
updateSlidesPosition?: UpdateSlidesPositionRequest;
updateTableBorderProperties?: UpdateTableBorderPropertiesRequest;
updateTableCellProperties?: UpdateTableCellPropertiesRequest;
updateTableColumnProperties?: UpdateTableColumnPropertiesRequest;
updateTableRowProperties?: UpdateTableRowPropertiesRequest;
updateTextStyle?: UpdateTextStyleRequest;
updateVideoProperties?: UpdateVideoPropertiesRequest;
}
[]
;
writeControl?: WriteControl

Provides control over how write requests are executed.

interface WriteControl {
requiredRevisionId?: string;
}
;
}

Responses

200 */*

Successful response

interface BatchUpdatePresentationResponse {
presentationId?: string;
replies?: Response

A single response from an update.

interface Response {
createImage?: CreateImageResponse;
createLine?: CreateLineResponse;
createShape?: CreateShapeResponse;
createSheetsChart?: CreateSheetsChartResponse;
createSlide?: CreateSlideResponse;
createTable?: CreateTableResponse;
createVideo?: CreateVideoResponse;
duplicateObject?: DuplicateObjectResponse;
groupObjects?: GroupObjectsResponse;
replaceAllShapesWithImage?: ReplaceAllShapesWithImageResponse;
replaceAllShapesWithSheetsChart?: ReplaceAllShapesWithSheetsChartResponse;
replaceAllText?: ReplaceAllTextResponse;
}
[]
;
writeControl?: WriteControl

Provides control over how write requests are executed.

interface WriteControl {
requiredRevisionId?: string;
}
;
}