Update existing file in repository
PUT
/v3/projects/{id}/repository/filesUpdate existing file in repository
请求参数
Path 参数
id
string
必需
The project ID
Body 参数application/x-www-form-urlencoded
file_path
string
必需
The path to new file. Ex. lib/class.rb
branch_name
string
必需
The name of branch
commit_message
string
必需
Commit Message
author_email
string
可选
The email of the author
author_name
string
可选
The name of the author
content
string
必需
File content
encoding
enum<string>
可选
File encoding
枚举值:
base64
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Update existing file in repository
数据结构
object {0}
示例
{}
最后修改时间: 1 个月前