update_file
Modify existing files in Alibaba Cloud Codeup repositories by specifying file path, content, and commit details to manage code changes.
Instructions
[Code Management] Update an existing file in a Codeup repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organizationId | Yes | Organization ID, can be found in the basic information page of the organization admin console | |
| repositoryId | Yes | Repository ID or a combination of organization ID and repository name, for example: 2835387 or organizationId%2Frepo-name (Note: slashes need to be URL encoded as %2F) | |
| filePath | Yes | File path, needs to be URL encoded, for example: /src/main/java/com/aliyun/test.java | |
| content | Yes | File content | |
| commitMessage | Yes | Commit message, not empty, no more than 102400 characters | |
| branch | Yes | Branch name | |
| encoding | No | Encoding rule, options {text, base64}, default is text | text |