Pull the latest project files from Git
POST /project/pull/{project_path}
Overview
This API updates the specified project with the latest files from the associated Git repository. Equivalent to git pull
.
You can use Git APIs in Continuous Integration / Continuous Deployment (CI/CD) workflows to pull files from Git repositories.
Note:
- The project must already be associated with a Git repository.
- You can track a maximum of 1000 assets per project. If a check-in would exceed 1000 assets in the repository or if you try to check out a project with more than 1000 assets, an error is thrown.
- You must use the SnapLogic Manager UI or Git tools to commit changes to your repository.
Prerequisites
- Write access to the assets to be added or updated
Request
POST https://{pod_path}/api/1/rest/public/project/pull/{project_path}
Path Parameters
Key | Description |
---|---|
pod_path |
Required. The path to your SnapLogic pod.
Example: |
project_path |
Required. The path to the SnapLogic project.
Format: Important: The path comparison is case-sensitive.
|
Query Parameters
None.
Request Header
Specify Basic
for authorization and application/json
for content type.
Authorization: Basic {your_encoded_security_credentials}
Content-Type: application/json
Request Body
None.
Response
Status code only.