/api/server/import/v4
Import data from a Zipline v4 export file, optionally merging into the current user and returning counts of imported records.
POST
/api/server/import/v4Request Body
application/json
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/server/import/v4" \ -H "Content-Type: application/json" \ -d '{ "export4": { "versions": { "zipline": "string", "node": "string", "export": "4" }, "request": { "user": null, "date": "string", "os": { "platform": "aix", "arch": "arm", "cpus": 0, "hostname": "string", "release": "string" }, "env": { "property1": "string", "property2": "string" } }, "data": { "settings": null, "users": [ { "id": "string", "createdAt": "string", "username": "string", "role": "USER", "view": { "property1": null, "property2": null } } ], "userPasskeys": [ { "id": "string", "createdAt": "string", "name": "string", "reg": { "property1": null, "property2": null }, "userId": "string" } ], "userQuotas": [ { "id": "string", "createdAt": "string", "filesQuota": "BY_BYTES" } ], "userOauthProviders": [ { "id": "string", "createdAt": "string", "provider": "DISCORD", "username": "string", "accessToken": "string", "userId": "string" } ], "userTags": [ { "id": "string", "createdAt": "string", "name": "string", "files": [ "string" ], "userId": "string" } ], "invites": [ { "id": "string", "createdAt": "string", "code": "string", "uses": 0, "inviterId": "string" } ], "folders": [ { "id": "string", "createdAt": "string", "name": "string", "public": true, "allowUploads": true, "files": [ "string" ], "userId": "string" } ], "urls": [ { "id": "string", "createdAt": "string", "code": "string", "destination": "string", "views": 0, "enabled": true } ], "files": [ { "id": "string", "createdAt": "string", "name": "string", "size": 0, "type": "string", "views": 0, "favorite": true, "userId": "string" } ], "thumbnails": [ { "id": "string", "createdAt": "string", "path": "string", "fileId": "string" } ], "metrics": [ { "id": "string", "createdAt": "string", "data": { "property1": null, "property2": null } } ] } }, "config": {} }'{ "imported": { "users": 0, "oauthProviders": 0, "quotas": 0, "passkeys": 0, "folders": 0, "files": 0, "tags": 0, "urls": 0, "invites": 0, "metrics": 0 }}/api/server/import/v3 POST
Import data from a legacy Zipline v3 export file, creating users, files, folders and URLs and returning a mapping of old IDs to new IDs.
/api/server/settings GET
Fetch the full Zipline server settings row along with a list of configuration keys that were overridden at runtime.