SymetryML Documentation
Projects

Import project

Imports a previously-exported project. By default the imported project is created under the name given by the `{project}` path parameter (which must not already exist for this customer). If `otherProjectName` is supplied instead, the imported project is merged into that existing project rather than created as new, and `{project}` is ignored for that case.

POST
/{user}/projects/{project}/import

Imports a previously-exported project. By default the imported project is created under the name given by the {project} path parameter (which must not already exist for this customer). If otherProjectName is supplied instead, the imported project is merged into that existing project rather than created as new, and {project} is ignored for that case.

Authorization

SymetryMLAuth
AuthorizationBearer <token>

HMAC-SHA256 signature-based authentication: requests are signed with your secret key and sent with the Customer-ID, Sym-date, Authorization, Content-MD5 and sym-version headers. See SymetryML REST API Security for the signature algorithm and a complete example.

In: header

Path Parameters

user*string

User/Customer identifier

project*string

Project identifier

Query Parameters

persist?boolean
Defaultfalse
otherProjectName?string
encrypted?boolean
Defaultfalse

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*string

The raw base64-encoded, gzip-compressed project bytes as returned by the export endpoint — a plain string body, NOT a JSON object (despite the application/json content type).

Response Body

application/json

application/json

curl -X POST "https://example.com/c1/projects/nbra_prj_iris/import" \  -H "Content-Type: application/json" \  -d 'H4sIAAAAAAAA/63ZW2wUVRgH8MOle50d+tAQiArYGC6KCkIJEqqHi1wC6lYbYG=='
{  "statusCode": 200,  "statusString": "Project Import with name [myImportedProject] for customer [c1]",  "values": {}}
{  "statusCode": 500,  "statusString": "Generic Exception [java.lang.Exception: Cannot import Fusion Project]",  "values": {}}