The projects area has 10 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
projectsArchive
Archive a project and its open tasks
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/archive
projectsArchive(args: { tenantId: string; projectId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<ProjectRecord>projectsContext
The context packet for a project
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/context
projectsContext(args: { tenantId: string; projectId: string; query?: { commit?: string } }, options?: CallOptions): Promise<ContextPacket>projectsCreate
Create a project (idempotent on repository)
- Request:
POSTon/v1/tenants/{tenantId}/projects
projectsCreate(args: { tenantId: string; body: CreateProjectRequest }, options?: CallOptions): Promise<ProjectRecord>projectsDelete
Delete a project: it is archived and can be restored for 30 days, then removed; refused while a task has a lease or recorded evidence
- Request:
DELETEon/v1/tenants/{tenantId}/projects/{projectId}
projectsDelete(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<ProjectRecord>projectsGet
Read a project
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}
projectsGet(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<ProjectRecord>projectsList
List the team’s projects; archived=true lists the archived ones that can still be restored
- Request:
GETon/v1/tenants/{tenantId}/projects
projectsList(args: { tenantId: string; query?: { archived?: string } }, options?: CallOptions): Promise<ProjectListResponse>projectsMerge
Merge a second project for the same code into this one
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/merge
projectsMerge(args: { tenantId: string; projectId: string; body: MergeProjectRequest }, options?: CallOptions): Promise<ProjectRecord>projectsMergePreview
Count what merging another project into this one would move; changes nothing
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/merge
projectsMergePreview(args: { tenantId: string; projectId: string; query?: { from?: string } }, options?: CallOptions): Promise<MergePreview>projectsRestore
Restore an archived project and the tasks archived with it, within 30 days
- Request:
POSTon/v1/tenants/{tenantId}/projects/{projectId}/restore
projectsRestore(args: { tenantId: string; projectId: string; body?: Record<string, unknown> }, options?: CallOptions): Promise<ProjectRecord>projectsUpdate
Rename a project, or change its code layer, its code map as context or repository sign-in
- Request:
PATCHon/v1/tenants/{tenantId}/projects/{projectId} - Needs an approval for agents: class
policy_change
projectsUpdate(args: { tenantId: string; projectId: string; body: UpdateProjectRequest }, options?: CallOptions): Promise<ProjectRecord>