update_file
Update an existing file in a Codeup repository by specifying the organization, repository, file path, new content, commit message, and branch for version-controlled changes.
Instructions
[Code Management] Update an existing file in a Codeup repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name | |
| content | Yes | File content | |
| encoding | No | Encoding rule, options {text, base64}, default is text | text |
| filePath | Yes | File path, needs to be URL encoded, for example: /src/main/java/com/aliyun/test.java | |
| repositoryId | Yes | Repository ID, or org/repo path with slashes URL-encoded as %2F. e.g. 2835387 or myorg%2Fmyrepo | |
| commitMessage | Yes | Commit message, not empty, no more than 102400 characters | |
| organizationId | Yes | Organization ID |