Memos

Import Memos

ImportMemos uploads a Memos export file in bounded chunks and imports it into the user's memos. The first call carries the spec and returns an upload_id; later calls carry that upload_id. A finishing call with validate_only returns the plan and keeps the archive staged; a finishing call without it imports and returns the report. Uploads are bound to the authenticated user, expire after 30 minutes of inactivity, and do not survive a server restart.

POST
/api/v1/users/{user}:importMemos

Path Parameters

user*string

The user id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/users/string:importMemos" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "writeOffset": "string"  }'
{  "uploadId": "string",  "committedSize": "string",  "maxChunkSize": 0,  "plan": {    "exportTime": "2019-08-24T14:15:22Z",    "exporter": "string",    "generator": "string",    "memos": 0,    "attachments": 0,    "new": 0,    "existing": 0,    "renamed": 0,    "warnings": [      {        "memo": "string",        "message": "string"      }    ]  },  "report": {    "created": 0,    "updated": 0,    "skipped": 0,    "failed": 0,    "warnings": [      {        "memo": "string",        "message": "string"      }    ],    "failures": [      {        "memo": "string",        "message": "string"      }    ]  }}