projects ยท version 0.1.0
Update project settings
PATCH /api/projects/{projectId}
Rename a project, update its API display name, or archive it. Workspace transfer is intentionally not enabled until role and ownership rules are finalized.
Request
PATCH https://sourced.sh/api/projects/{projectId}
Parameters
| Name | Location | Required | Description |
|---|---|---|---|
projectId | path | Yes | Project identifier. string |
Request body
Required.
application/json
ProjectUpdateInput:
type: object
properties:
name: string
New project display name.
apiName: string
API display name used in generated docs and SDK metadata.
status: string enum created | active | archived
archive: boolean
Set true to archive the project.
transferOrgId: string
Reserved for future workspace transfer support; currently returns 501.
Responses
200
Updated project.
application/json
type: object
required: project
properties:
project (required): Project
Project:
type: object
required: id, name, createdAt
properties:
id (required): string
name (required): string
apiName: string
mode: string enum flagship | stainless_compatible | custom | openapi | stainless_migration
New writes use `flagship` or `stainless_compatible`; legacy `custom`, `openapi`, and `stainless_migration` records may still be returned.
status: string enum created | active | archived
createdAt (required): string
updatedAt: string
runCount: integer
401
403
404
501
Project transfer is not supported yet.
application/json
Error:
type: object
required: error
properties:
error (required): string
Stable machine-readable error code.
message: string
Optional human-readable description.