Volver al catálogo

Google Apps Script

google_apps_script

Google Apps Script is a cloud-based JavaScript platform for creating, managing, deploying, and executing automations across Google Workspace.

Acciones
16
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (16)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create DeploymentGOOGLE_APPS_SCRIPT_CREATE_DEPLOYMENTAcción

Create a deployment for an Apps Script project from a version and return its deployment ID, configuration, entry points, and update time.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • script_idstringObligatorio

    Script project Drive ID. Sent in both the request path and the deployment configuration body.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • descriptionstring

    Description for the deployment.

  • pretty_printboolean

    Whether Google should pretty-print the JSON response payload.

  • version_numberinteger

    Project version number on which to base the deployment.

  • manifest_file_namestring

    Manifest file name for the deployment.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create ProjectGOOGLE_APPS_SCRIPT_CREATE_PROJECTAcción

Create an empty standalone or container-bound Apps Script project and return its project metadata and script ID.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • titlestring

    Title for the new project; Google does not require this field.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • parent_idstring

    Drive ID of a Google Docs, Sheets, Forms, or Slides file to bind the script to; omit for a standalone project.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create VersionGOOGLE_APPS_SCRIPT_CREATE_VERSIONAcción

Create an immutable numbered snapshot from an Apps Script project's current code and return its assigned version metadata.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • script_idstringObligatorio

    Script project Drive ID. Sent in both the request path and the documented Version body field.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • descriptionstring

    Description for the new immutable version.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete DeploymentGOOGLE_APPS_SCRIPT_DELETE_DEPLOYMENTAcción

Permanently undeploy a deployment from an Apps Script project; this does not delete the project or version.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • deployment_idstringObligatorio

    Deployment ID to undeploy.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get DeploymentGOOGLE_APPS_SCRIPT_GET_DEPLOYMENTAcción

Get one Apps Script deployment by project and deployment ID, including its configuration and externally accessible entry points.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • script_idstringObligatorio

    Script project Drive ID.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the JSON response payload.

  • deployment_idstringObligatorio

    Deployment ID to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ProjectGOOGLE_APPS_SCRIPT_GET_PROJECTAcción

Get metadata for one Apps Script project, including its title, parent, timestamps, creator, and last modifying user.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID to retrieve.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Project ContentGOOGLE_APPS_SCRIPT_GET_PROJECT_CONTENTAcción

Get the current HEAD or a numbered version of an Apps Script project's complete file set, including source code and file metadata.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID whose files to retrieve.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • version_numberinteger

    Project version to retrieve; omit for the current HEAD content.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Project MetricsGOOGLE_APPS_SCRIPT_GET_PROJECT_METRICSAcción

Get weekly or daily execution, failure, and active-user metrics for a script project, optionally restricted to one deployment.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID whose metrics to retrieve.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • deployment_idstring

    Only return metrics for this deployment ID.

  • metrics_granularitystringObligatorioenum

    Time granularity for returned metric intervals; prefer WEEKLY or DAILY.

    UNSPECIFIED_GRANULARITYWEEKLYDAILY

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get VersionGOOGLE_APPS_SCRIPT_GET_VERSIONAcción

Get one immutable version of an Apps Script project by its version number.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • version_numberintegerObligatorio

    Version number to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List DeploymentsGOOGLE_APPS_SCRIPT_LIST_DEPLOYMENTSAcción

Return one page of deployments for an Apps Script project, including each deployment's configuration and entry points.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • cursorstring

    Continuation token returned as next_cursor by a previous call.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • page_sizeinteger

    Maximum deployments to return on this page; Google defaults to 50 and documents no maximum.

  • script_idstringObligatorio

    Script project Drive ID whose deployments to list.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the JSON response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Script ProcessesGOOGLE_APPS_SCRIPT_LIST_SCRIPT_PROCESSESAcción

Return one page of execution processes for a script project, optionally filtered by function, deployment, time, type, status, or connected-user access level.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • cursorstring

    Continuation token returned as next_cursor by a previous call.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • end_timestringdate-time

    Only return processes completed at or before this RFC 3339 timestamp.

  • statusesstring[]

    Only return processes with one of these statuses. Values are sent as repeated query parameters.

  • page_sizeinteger

    Maximum processes to return on this page. Google defaults to 50 and documents no maximum.

  • script_idstring

    Script project Drive ID whose processes to list. Google documents this field as optional.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • start_timestringdate-time

    Only return processes started at or after this RFC 3339 timestamp.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • deployment_idstring

    Only return processes from this deployment ID.

  • function_namestring

    Only return processes for this script function name.

  • process_typesstring[]

    Only return processes with one of these execution types. Values are sent as repeated query parameters.

  • user_access_levelsstring[]

    Only return processes for which the connected user has one of these access levels. Values are sent as repeated query parameters.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List User ProcessesGOOGLE_APPS_SCRIPT_LIST_USER_PROCESSESAcción

Return one page of Apps Script executions made by or for the connected user, optionally filtered by project, function, deployment, time, type, status, access level, or project name.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • cursorstring

    Continuation token returned as next_cursor by a previous call.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • end_timestringdate-time

    Only return processes completed at or before this RFC 3339 timestamp.

  • statusesstring[]

    Only return processes with one of these statuses.

  • page_sizeinteger

    Maximum processes to return on this page; Google defaults to 50 and documents no maximum.

  • script_idstring

    Only return processes from this script project Drive ID.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • start_timestringdate-time

    Only return processes started at or after this RFC 3339 timestamp.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • project_namestring

    Only return processes whose project name contains this text.

  • deployment_idstring

    Only return processes from this deployment ID.

  • function_namestring

    Only return processes for this script function name.

  • process_typesstring[]

    Only return processes with one of these execution types.

  • user_access_levelsstring[]

    Only return processes for which the connected user has one of these access levels.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List VersionsGOOGLE_APPS_SCRIPT_LIST_VERSIONSAcción

Return one page of immutable versions for an Apps Script project with their numbers, creation times, and descriptions.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • cursorstring

    Continuation token returned as next_cursor by a previous call.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • page_sizeinteger

    Maximum versions to return on this page; Google defaults to 50 and documents no maximum.

  • script_idstringObligatorio

    Script project Drive ID whose versions to list.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Project ContentGOOGLE_APPS_SCRIPT_REPLACE_PROJECT_CONTENTAcción

Destructively replace the complete HEAD file set of an Apps Script project. Every existing file omitted from files is permanently deleted, and files must include a JSON manifest named appsscript.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • filesobject[]Obligatorio

    Complete replacement file set. Existing project files omitted from this list are permanently deleted. Include a file named appsscript with type JSON containing a valid project manifest.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • script_idstringObligatorio

    Script project Drive ID. Sent in both the request path and the documented Content body.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Run FunctionGOOGLE_APPS_SCRIPT_RUN_FUNCTIONAcción

Run a function in an API Executable deployment. In addition to the base userinfo.email grant, the connection must include every OAuth scope used by the target script; add those target-specific permissions as custom scopes on the auth config. The function can have arbitrary external side effects.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented response fields.

  • dev_modeboolean

    If true and the caller owns the script, run the latest saved code instead of the deployed version.

  • parametersarray

    Ordered function arguments. Values must be primitives, arrays, or plain objects, not Apps Script service objects.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • pretty_printboolean

    Whether Google should pretty-print the response payload.

  • deployment_idstringObligatorio

    API Executable deployment ID, not the script project's Drive ID.

  • function_namestringObligatorio

    Function to execute without parentheses; may use a library-qualified name such as Library.libFunction1.

  • session_statestring

    Deprecated Android add-on session ID retained for complete API coverage.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update DeploymentGOOGLE_APPS_SCRIPT_UPDATE_DEPLOYMENTAcción

Replace an Apps Script deployment's configuration, such as its version, description, or manifest file name.

Parámetros de entrada

  • altstring

    Response format. Only JSON is supported because this action returns a typed JSON response.

  • fieldsstring

    Google partial-response selector. Omit to return all documented fields.

  • script_idstringObligatorio

    Script project Drive ID. Sent in the request path and as deploymentConfig.scriptId in the request body.

  • quota_userstring

    Opaque quota attribution key, up to 40 characters; do not put personal data here.

  • descriptionstring

    Updated deployment description.

  • pretty_printboolean

    Whether Google should pretty-print the JSON response payload.

  • deployment_idstringObligatorio

    Deployment ID to update.

  • version_numberinteger

    Version number on which the updated deployment is based.

  • manifest_file_namestring

    Updated manifest file name for the deployment.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not