POST

Commit Git Code Store Project Upload


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Commits and pushes a previously uploaded ZIP's contents to an existing branch.

Replaces the complete tracked file tree. Does not publish or deploy the application. Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history. Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit. Unless force is true, a stale expected head fails even for unchanged input. Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict. Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries. Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository. After a timeout, call Generate Git Code Store Project Download Url for the same branch with revisionId omitted. Compare its revision and downloaded tree with your intended changes before retrying. A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout. Requires an authenticated user with update access to the app or its companion site.

Endpoint
POST
https://www.wixapis.com/codestore/v2/git-code-store-projects/{managedProjectId}/commit-upload

Errors
400Invalid Argument

There are 2 errors with this status code.

404Not Found

There are 2 errors with this status code.

409Already Exists

There is 1 error with this status code.

428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?