path * | string | The file referenced in the tree. |
mode | TreeEntryMode | The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink. |
type | TreeEntryType | Either blob, tree, or commit. |
sha | string | The SHA1 checksum ID of an existing object to place at this path, from git_blobs_create. Use either this or content, never both. |
content | string | The content you want this file to have, as plain text. GitHub will write this blob out and use that SHA for this entry. Use either this or sha. |
delete | boolean | Set true to remove this path from the tree. GitHub answers with an error if the path is not in base_tree. |