update_script_content
Modify and update the files within a Google Apps Script project by specifying the script ID and the files to be updated, ensuring project content stays current and accurate.
Instructions
Updates the content of a specified Google Apps Script project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The files to be updated in the script project. | |
| scriptId | Yes | The ID of the script project to update. |
Input Schema (JSON Schema)
{
"properties": {
"files": {
"description": "The files to be updated in the script project.",
"items": {
"properties": {
"createTime": {
"type": "string"
},
"functionSet": {
"properties": {
"values": {
"items": {
"properties": {
"name": {
"type": "string"
},
"parameters": {
"items": {
"properties": {
"value": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"lastModifyUser": {
"properties": {
"domain": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"photoUrl": {
"type": "string"
}
},
"type": "object"
},
"name": {
"description": "The name of the file.",
"type": "string"
},
"source": {
"type": "string"
},
"type": {
"description": "The type of the file.",
"type": "string"
},
"updateTime": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"scriptId": {
"description": "The ID of the script project to update.",
"type": "string"
}
},
"required": [
"scriptId",
"files"
],
"type": "object"
}