Update project settings
const url = 'https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","targetRepo":"example","backendRepo":"example","repos":[{"repoSlug":"TeamK2K/app-apphandoff","role":"backend","branch":"example","appSubDir":"example"}],"outputDestination":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "targetRepo": "example", "backendRepo": "example", "repos": [ { "repoSlug": "TeamK2K/app-apphandoff", "role": "backend", "branch": "example", "appSubDir": "example" } ], "outputDestination": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project UUID
Request Body required
Section titled “Request Body required ”object
object
GitHub repo in owner/repo format.
Example
TeamK2K/app-apphandoffOptional branch override. Empty means default branch.
Optional relative scan root inside the repo, such as apps/backend or apps/frontend.
Responses
Section titled “ Responses ”Updated project
object
object
Primary Lovable/frontend repo (owner/repo)
Legacy alias of frontendRepo
object
GitHub repo in owner/repo format.
Example
TeamK2K/app-apphandoffOptional branch override. Empty means default branch.
Optional relative scan root inside the repo, such as apps/backend or apps/frontend.
Snake_case alias of lastScanAt
Most recent agent (bot) or human (user) activity_events row for the project; null when no activity recorded. Drives the “Latest activity” sort on the projects list.
Null when run stats could not be loaded (distinct from zero runs)
Null when run stats could not be loaded
Always false on GET /projects list; use GET /projects/{id}/sync-check for live GitHub ahead/behind
Scanned backend context
Scanned Lovable context
object
Invalid request
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Not authenticated
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
True if re-linking GitHub may fix the issue
Forbidden
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Not found
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)