POST /v1/workspaces/{id}/documents.
API reference sections
Schema
NewDocument
Type object
Shape
| Field | Type | Description |
|---|---|---|
| id | DocumentId or null | Optional client-minted identity. Importers use this so snapshots can contain routed references to other entries in the same batch. Default |
| titlerequired | string | |
| kindrequired | string | The application's own kind - |
| mime | string or null | MIME type for file entries. Optional for ordinary documents and older clients. |
| parent | DocumentId or null | Absent means the workspace root. Default |
| index | integer (uint, >= 0) or null | Where among The same coordinate Default |
| trashed_at | Timestamp or null | Create the manifest row already in Trash at this source timestamp. Absent preserves the pre-capability behavior for older clients. |
| snapshot | array of integer (uint8, >= 0, <= 255) or null | Optional complete initial state. Used by importers so registering the manifest row and committing content is one Store operation rather than a briefly visible empty page followed by a client update. |
{
"id": "00000000-0000-4000-8000-000000000000",
"title": "string",
"kind": "string",
"mime": "string",
"parent": "00000000-0000-4000-8000-000000000000",
"index": 0,
"trashed_at": 0,
"snapshot": [
0
]
}The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.
Used by
Generated from contract version 1. Last updated .
