Projects
Upload project files
Add or replace files from a gzipped tar. Paths the archive carries are written; everything else stays put.
POST
https://cloud.generalinput.com/v1/projects/:id/files/bundleAuthenticationRequires
projects:manage on a personal API key. A CLI session always passes.Push is additive. To remove a file, use delete a file. The body is the raw archive, up to 50 MB.
Request
Content-Type: application/gzip
<tar.gz bytes>Response
The full file list, as list files returns it.
Example
tar -czf files.tar.gz -C ./project-files .
curl -s -X POST "https://cloud.generalinput.com/v1/projects/proj_01HX/files/bundle" \
-H "Authorization: Bearer $GI_API_KEY" \
-H "Content-Type: application/gzip" --data-binary @files.tar.gzErrors
| Status | When |
|---|---|
400 | Empty body, or the archive holds no files. |
403 | The member cannot edit the project. |