u
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
# `POST /vfs/drafts/response`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Respond to a frontend draft request
|
||||
|
||||
Used by the frontend to answer a server-initiated `draft:request` SSE event
|
||||
when reading or listing virtual drafts (`drafts/quote`, `drafts/order`, `drafts/delivery`).
|
||||
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `requestId` | yes | string | Unique request ID from the draft:request SSE event |
|
||||
| `content` | no | | File content when action was read |
|
||||
| `error` | no | string | Error message if draft retrieval failed on frontend |
|
||||
| `files` | no | any[] | File listing when action was list |
|
||||
|
||||
```json
|
||||
{
|
||||
"requestId": "…",
|
||||
"content": "…",
|
||||
"error": "…",
|
||||
"files": []
|
||||
}
|
||||
```
|
||||
|
||||
## Response `200`
|
||||
|
||||
Response received and resolved
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Missing requestId or no company selected — `{"error":"…"}` |
|
||||
| 404 | Request ID not found or already timed out — `{"error":"…"}` |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user