Import workspace
POST/v1/workspaces/import
Restores a file from GET /workspaces/{id}/export into a NEW workspace owned by the token person. Answers what could not be brought back (warnings) so it can be finished by hand. Requires a person token (a machine token gets 403) holding the permissions to create workspaces, configure the portal and create data sources. The entities in the file go through the same checks as when created one by one (keys, expressions, the field limit of the workspace). The body is limited to 2 MB.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 429
- 500
Workspace imported.
Request body failed validation.
Missing or invalid bearer token.
Token is valid but lacks permission for this operation.
Resource not found in the current organization.
The file is not a valid workspace export (INVALID_WORKSPACE_FILE).
Rate limit exceeded.
Unexpected server error.