Create Project from Git Files
POST /project/create-project/{project_path}
Overview
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.
Prerequisites
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
Request
Path Parameters
Key | Description |
---|---|
| Required. The path to your SnapLogic pod. Example: |
| Required. The path to the SnapLogic project. Format: The path comparison is case-sensitive. |
Query Parameters
None.
Request Header
Specify Basic
for authorization and application/json
for content type.
Request Body
{
"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
Response Body
{
"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. |
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.