Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.studio.prisme.ai/v2/workspaces/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form archive='@example-file'
const form = new FormData(); form.append('archive', '<string>'); const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}}; options.body = form; fetch('https://api.studio.prisme.ai/v2/workspaces/import', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.studio.prisme.ai/v2/workspaces/import" files = { "archive": ("example-file", open("example-file", "rb")) } headers = {"Authorization": "Bearer <token>"} response = requests.post(url, files=files, headers=headers) print(response.text)
{ "processing": true, "message": "<string>" }
{ "error": "BadParameters", "message": "<string>", "details": "<unknown>" }
{ "error": "AuthenticationError", "message": "Unauthenticated" }
{ "error": "ForbiddenError", "message": "Forbidden" }
Import a workspace archive into a new workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Zip archive binary data
Success Response
Was this page helpful?