Projects
Returns a list of all projects that have been onboarded to the system. Projects are returned in no particular order. This endpoint is useful for discovering available projects before performing operations on them.
List of projects retrieved successfully.
Internal server error
GET /sfp/api/projects HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
[
{
"identifier": "flxbl-io/sf-core",
"remoteUrl": "https://github.com/flxbl-io/sf-core",
"platform": "github",
"createdAt": "2025-06-21T10:00:00.000Z",
"updatedAt": "2025-06-21T10:00:00.000Z",
"version": 1,
"configuration": {
"displayName": "SFP Pro",
"description": "Enterprise Salesforce build system",
"settings": {
"buildTimeout": 3600,
"parallelBuilds": 4
}
}
}
]
Creates a new project entry for repository onboarding. Fails if the project already exists to prevent accidental updates through POST requests. Use this endpoint to register repositories with the SFP server for future operations. Only users with the "owner" role can create projects.
Repository identifier (e.g., "org/repo" for GitHub, "12323" for GitLab)
flxbl-io/sf-core
Remote repository URL
https://github.com/flxbl-io/sf-core
The project has been successfully created.
Invalid request data
Forbidden - Only owners can create projects
The project already exists.
POST /sfp/api/projects HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"identifier": "flxbl-io/sf-core",
"remoteUrl": "https://github.com/flxbl-io/sf-core"
}
{
"identifier": "flxbl-io/sf-core",
"remoteUrl": "https://github.com/flxbl-io/sf-core",
"platform": "github",
"createdAt": "2025-06-21T10:00:00.000Z",
"updatedAt": "2025-06-21T10:00:00.000Z",
"version": 1,
"configuration": {
"displayName": "SFP Pro",
"description": "Enterprise Salesforce build system",
"settings": {
"buildTimeout": 3600,
"parallelBuilds": 4
}
}
}
Retrieves a project by its repository identifier (e.g., "org/repo"). The identifier must match exactly what was used during project creation. This endpoint supports identifiers with slashes for GitHub-style repositories.
Repository identifier (e.g., "org/repo")
flxbl-io/sf-core
Project retrieved successfully.
Project not found.
Internal server error
GET /sfp/api/projects/{identifier} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"identifier": "flxbl-io/sf-core",
"remoteUrl": "https://github.com/flxbl-io/sf-core",
"platform": "github",
"createdAt": "2025-06-21T10:00:00.000Z",
"updatedAt": "2025-06-21T10:00:00.000Z",
"version": 1,
"configuration": {
"displayName": "SFP Pro",
"description": "Enterprise Salesforce build system",
"settings": {
"buildTimeout": 3600,
"parallelBuilds": 4
}
}
}
Updates an existing project's configuration. Supports partial updates via PATCH semantics. Only owners can update projects. Includes optimistic concurrency control through version checking to prevent concurrent update conflicts.
Repository identifier (e.g., "org/repo")
flxbl-io/sfp-core
Remote repository URL
https://github.com/flxbl-io/sfp-pro
Project configuration object for future extensibility
{"displayName":"SFP Pro","description":"Enterprise Salesforce build system","settings":{"buildTimeout":3600,"parallelBuilds":4}}
Document version for optimistic concurrency control
1
Project updated successfully.
Invalid request data
Forbidden - Only owners can update projects
Project not found.
Version conflict - the project has been modified by another process.
Internal server error
PATCH /sfp/api/projects/{identifier} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"remoteUrl": "https://github.com/flxbl-io/sfp-pro-renamed"
}
{
"identifier": "flxbl-io/sf-core",
"remoteUrl": "https://github.com/flxbl-io/sf-core",
"platform": "github",
"createdAt": "2025-06-21T10:00:00.000Z",
"updatedAt": "2025-06-21T10:00:00.000Z",
"version": 1,
"configuration": {
"displayName": "SFP Pro",
"description": "Enterprise Salesforce build system",
"settings": {
"buildTimeout": 3600,
"parallelBuilds": 4
}
}
}
Was this helpful?