This page is no longer maintained (). For the most current information, go to https://docs.snaplogic.com/public-apis/post-project-create-project-project-path.html. |
POST /project/create-project/{project_path}
This API creates a project using the files in the specified Git repository and branch.
You can track a maximum of 1,000 assets per project. If you try to check out a project with more than 1,000 assets, SnapLogic throws an error. |
Org Admin permissions
GitHub- or GHES-related requirements:
The Org must be correctly configured to use GitHub or GHES.
The user must have an authenticated GitHub or GHES account.
Learn more: SnapLogic - Git Integration
|
Key | Description | |
---|---|---|
| Required. The path to your SnapLogic pod. Example: | |
| Required. The path to the SnapLogic project. Format:
|
None.
Specify Basic
for authorization and application/json
for content type.
|
{ "repo" : ..., "ref" : ... } |
Key | Type | Description |
---|---|---|
| string | The Git repository containing the files to use with the new project. |
| string | The name of the branch containing the files to use with the new project. |
{ "response_map": { "status": "", "overwritten": [], "updated": [], "error_msgs": [], "created": [], "ignored": [] }, "http_status_code": 200 } |
Key | Type | Description |
---|---|---|
| string | The status of the process. |
| array | An empty list. No files are overwritten, because the project is new. |
| array | An empty list. No files are updated, because the project is new. |
| array | Any error messages that were thrown during the process. |
| array | Asset files that were copied from the Git repository into the project. |
| array | Asset files that exist in the Git repository but were not copied into the project. |