Projects
Connect a project to a GitHub repository
The org is orgId in the path. Connects the project to a repository in the organization's GitHub account, through the organization's Spice Cloud GitHub App installation. The next deployment reads spicepod.yaml (or spicepod.yml) from root_directory on production_branch. Connecting sets the project description to the repository description. Connecting again replaces the repository, root directory and production branch. Requires apps:write.
put/v1/orgs/{orgId}/projects/{projectId}/repository
Request
- Base URLhttps://api.spice.ai
- AuthHTTP bearer
Path parameters
orgIdinteger required
The org id from GET /v1/orgs
projectIdinteger required
The ID of the project to connect
Headers
X-Org-Namestring
When present, X-Org-Name must name the same org as orgId. Otherwise the request returns org_path_mismatch (400).
Request body
Example request
{
"repository": "cookbook",
"root_directory": "cayenne",
"production_branch": "trunk"
}Response
Project connected
Changes
No recorded changes to this operation across all 1 revision of this API.