From 6c27a2500b7f83e87eec3bb6c245bedb863eab92 Mon Sep 17 00:00:00 2001 From: vineetsahu-boop Date: Thu, 5 Mar 2026 15:49:47 +0530 Subject: [PATCH] Update Execute.java Update `scripts.run` documentation to use `deploymentId` instead of `scriptId`. The `scripts.run` method now requires a `deploymentId` in the request path and path parameters, replacing the previous use of `scriptId`. The description for finding the ID has also been updated. --- appsScript/execute/src/main/java/Execute.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appsScript/execute/src/main/java/Execute.java b/appsScript/execute/src/main/java/Execute.java index ce4ef2c6..d1d660bd 100644 --- a/appsScript/execute/src/main/java/Execute.java +++ b/appsScript/execute/src/main/java/Execute.java @@ -96,9 +96,9 @@ public static String getScriptError(Operation op) { } public static void main(String[] args) throws IOException { - // ID of the script to call. Acquire this from the Apps Script editor, - // under Publish > Deploy as API executable. - String scriptId = "ENTER_YOUR_SCRIPT_ID_HERE"; + // Deployment ID of the script to call. Acquire this from + // the Apps Script editor, under Publish > Deploy as API executable. + String deploymentId = "ENTER_YOUR_DEPLOYMENT_ID_HERE"; Script service = getScriptService(); // Create an execution request object. @@ -108,7 +108,7 @@ public static void main(String[] args) throws IOException { try { // Make the API request. Operation op = - service.scripts().run(scriptId, request).execute(); + service.scripts().run(deploymentId, request).execute(); // Print results of request. if (op.getError() != null) {