SaveRepoConent
save repo content
- application/json
Request Body
- message string
commit message
- content string
File content, encoded using Base64.
- sha string
If it is an update file, change the field to required. Just submit the SHA value.
- branch string
branch name ,Default:repository's default branch'
committer object
commitor. Default value - The currently authenticated user."
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code.
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date stringauthor object
commitor. Default value - The currently authenticated user.
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date string
- 200
- 201
- 403
- 404
- 409
- responseBody
success
created
No Access
404 not found
Conflict (someone updated the file first)
- application/json
- Schema
Schema
content object
encoding stringEncode type. Default: base64
name stringfilename
path stringfile path
sha stringcommit sha value
size integerFile size, or 0 if "type" is "dir" or "submodule"
type stringFile type, enumeration values: file, dir, symlink, submodule
entries object[]
If "type" is "dir", files and subdirectories in that directory are returned. If "type" is "file", an empty array is returned. If "type" is "symlink", information about the symbolic link is returned. If "type" is "submodule", returns the submodule information.
Array [encoding stringEncode type. Default: base64
name stringfilename
path stringfile path
sha stringcommit sha value
size integerFile size, or 0 if "type" is "dir" or "submodule"
type stringFile type, enumeration values: file, dir, symlink, submodule
]commit object
committer object required
commitor. Default value - The currently authenticated user.
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code.
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date stringauthor object required
commitor. Default value - The currently authenticated user.
name stringThe name of the commitor. If you omit this field, you will receive a 422 status code
email stringcommitor's email. If you omit the email, you will receive a 422 status code.
date stringmessage stringcommit message
sha stringcommit sha value
parents object[] required
parent commit
Array [sha stringparent commit sha value
]