GuideLab API

Import an uploaded bundle into the current organization

Re-plans the uploaded bundle and applies it: all ids are regenerated, references remapped, assets copied. One import at a time per organization. Lab owners only.

POST
/data-bundle/import/execute

Re-plans the uploaded bundle and applies it: all ids are regenerated, references remapped, assets copied. One import at a time per organization. Lab owners only.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/data-bundle/import/execute" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "string"  }'
{  "success": true,  "importLogId": "string",  "tables": [    {      "name": "string",      "domain": "products",      "created": 0,      "updated": 0,      "skipped": 0,      "warnings": [        {          "code": "member_not_found",          "message": "string",          "table": "string",          "count": 0,          "sample": [            "string"          ]        }      ]    }  ],  "totals": {    "created": 0,    "updated": 0,    "skipped": 0  },  "warnings": [    {      "code": "member_not_found",      "message": "string",      "table": "string",      "count": 0,      "sample": [        "string"      ]    }  ],  "assetsCopied": 0}
Empty
Empty
Empty
Empty
Empty