API 参考
更新项目
重命名项目或编辑其描述。
只有你发送的字段会改变。发送空字符串(例如 "description": "")可清空字段。
OpenAPI
openapi: 3.1.0
info:
title: BioAgent API — V1
description: Public API for BioAgent, the biomedical AI agent platform.
version: 0.1.0
servers:
- url: https://bioagent.cloud/api/v1
description: >-
BioAgent public API base URL. Every endpoint on this page is served from
this host.
security: []
paths:
/projects/{project_id}:
put:
tags:
- projects
summary: Update a project
description: Rename a project or edit its description.
operationId: update_project_projects__project_id__put
parameters:
- name: project_id
in: path
required: true
schema:
type: string
title: Project Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateProjectRequest'
examples:
rename:
summary: Rename only
value:
title: Patient001 BRCA1 — final report
full:
summary: Rename and edit the description
value:
title: Patient001 BRCA1 — final report
description: Sign-off review pass complete.
responses:
'200':
description: Project after update.
content:
application/json:
schema:
$ref: '#/components/schemas/Project'
example:
id: prj_014OwAG97UY0UfcHlLHQRnKO
type: project
title: BRCA1 variant workup
description: Clinical genomics workup for three BRCA1 variants.
created_at: '2026-08-12T21:21:01.919000Z'
updated_at: '2026-08-12T22:05:44.612000Z'
security:
- bearerAuth: []
components:
schemas:
UpdateProjectRequest:
properties:
title:
anyOf:
- type: string
maxLength: 128
minLength: 1
- type: 'null'
title: Title
description:
anyOf:
- type: string
maxLength: 1024
- type: 'null'
title: Description
description: Free-text description of the project.
additionalProperties: false
type: object
title: UpdateProjectRequest
Project:
properties:
id:
type: string
title: Id
type:
type: string
const: project
title: Type
default: project
title:
type: string
title: Title
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Free-text description of the project.
created_at:
type: string
format: date-time
title: Created At
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
type: object
required:
- id
- title
- created_at
title: Project
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Requires an API key. See the Authentication guide.