Skip to content

Commit f0494d7

Browse files
committed
update for more project features
1 parent aba3d43 commit f0494d7

3 files changed

Lines changed: 437 additions & 390 deletions

File tree

api-docs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ Create or update conversations.
10411041
**Request Body**:
10421042
```json
10431043
{
1044-
"action": "create" | "createWithMessage" | "branch" | "updateTitle" | "updateGenerating" | "updateCost" | "setPublic" | "togglePin",
1044+
"action": "create" | "createWithMessage" | "branch" | "updateTitle" | "setProject" | "updateGenerating" | "updateCost" | "setPublic" | "togglePin",
10451045
// Additional fields depend on action
10461046
}
10471047
```
@@ -1051,6 +1051,7 @@ Create or update conversations.
10511051
- `createWithMessage`: Create conversation with first message. Fields: `content`, `contentHtml`, `role`, `images`, `webSearchEnabled`, `projectId`.
10521052
- `branch`: Branch from existing message. Fields: `conversationId`, `fromMessageId`.
10531053
- `updateTitle`: Update title. Fields: `conversationId`, `title`.
1054+
- `setProject`: Move conversation to a project (or remove it). Fields: `conversationId`, `projectId` (string or `null`).
10541055
- `setPublic`: Make conversation public. Fields: `conversationId`, `public`.
10551056
- `togglePin`: Toggle pin status. Fields: `conversationId`.
10561057

0 commit comments

Comments
 (0)