Project methods: update, delete
The Project Verbs update, delete as typed SDK methods, with inputs, result, refusals and an example.
Reference for Project, one group of Project methods.
Project.update
Changes the given properties of a Project. Verb page.
interface ProjectVerbs {
update(input: ProjectUpdateInput, options?: SB.CallOptions): SB.Call<Project>
}Emits Project.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Project. |
startsOn | date | When work begins. | |
targetDate | date | When it should be done. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
project | Project | required | The Project. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
import { $ } from 'startup-builder'
const project = await $.Project.update({ id: 'project_pUWTSQuuUM', startsOn: '2026-10-22' })Project.delete
Deletes a Project: a soft delete that keeps its history, undone by Thing.restore. Verb page.
interface ProjectVerbs {
delete(input: ProjectDeleteInput, options?: SB.CallOptions): SB.Call<Project>
}Emits Project.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Project. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
project | Project | required | The Project. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
import { $ } from 'startup-builder'
const project = await $.Project.delete({ id: 'project_pUWTSQuuUM' })