⭐ If you find Zipline useful, please consider giving it a star on Github! ⭐

/api/server/import/v3

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.

POST/api/server/import/v3

Request Body

application/json

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/server/import/v3" \  -H "Content-Type: application/json" \  -d '{    "export3": {      "versions": {        "zipline": "string",        "node": "string",        "export": "3"      },      "request": {        "user": "string",        "date": "string",        "os": {          "platform": "aix",          "arch": "arm",          "cpus": 0,          "hostname": "string",          "release": "string"        },        "env": {          "property1": "string",          "property2": "string"        }      },      "user_map": {        "property1": "string",        "property2": "string"      },      "thumbnail_map": {        "property1": "string",        "property2": "string"      },      "folder_map": {        "property1": "string",        "property2": "string"      },      "file_map": {        "property1": "string",        "property2": "string"      },      "url_map": {        "property1": "string",        "property2": "string"      },      "invite_map": {        "property1": "string",        "property2": "string"      },      "users": {        "property1": {          "username": "string",          "administrator": true,          "super_administrator": true,          "embed": {},          "oauth": [            {              "provider": "DISCORD",              "username": "string",              "oauth_id": "string",              "access_token": "string",              "refresh_token": "string"            }          ]        },        "property2": {          "username": "string",          "administrator": true,          "super_administrator": true,          "embed": {},          "oauth": [            {              "provider": "DISCORD",              "username": "string",              "oauth_id": "string",              "access_token": "string",              "refresh_token": "string"            }          ]        }      },      "files": {        "property1": {          "name": "string",          "type": "string",          "size": 0,          "views": 0,          "created_at": "string",          "favorite": true        },        "property2": {          "name": "string",          "type": "string",          "size": 0,          "views": 0,          "created_at": "string",          "favorite": true        }      },      "thumbnails": {        "property1": {          "name": "string",          "created_at": "string"        },        "property2": {          "name": "string",          "created_at": "string"        }      },      "folders": {        "property1": {          "name": "string",          "public": true,          "created_at": "string",          "files": [            "string"          ]        },        "property2": {          "name": "string",          "public": true,          "created_at": "string",          "files": [            "string"          ]        }      },      "urls": {        "property1": {          "destination": "string",          "code": "string",          "created_at": "string",          "views": 0        },        "property2": {          "destination": "string",          "code": "string",          "created_at": "string",          "views": 0        }      },      "invites": {        "property1": {          "code": "string",          "created_at": "string",          "used": true        },        "property2": {          "code": "string",          "created_at": "string",          "used": true        }      },      "stats": [        {          "created_at": "string",          "data": null        }      ]    }  }'
{  "users": {    "property1": "string",    "property2": "string"  },  "files": {    "property1": "string",    "property2": "string"  },  "folders": {    "property1": "string",    "property2": "string"  },  "urls": {    "property1": "string",    "property2": "string"  }}