Import model
Imports a model previously exported via `GET /model/export`. Note the path segment is singular `model`. The request body is the raw AES-encrypted, base64-encoded export blob (the literal `values.string` value from the export response) as the body, decrypted server-side with the customer's key.
Imports a model previously exported via GET /model/export. Note the
path segment is singular model. The request body is the raw
AES-encrypted, base64-encoded export blob (the literal values.string
value from the export response) as the body, decrypted server-side
with the customer's key.
Authorization
SymetryMLAuth 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/Customer identifier
Project identifier
Query Parameters
Name to assign to the imported model.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/c1/projects/nbra_prj_iris/model/import?modelId=nbra_prj_iris_1" \ -H "Content-Type: application/json" \ -d '/oZVLWVA2VczyB572ZSMl3bhwMGlCN1Eh4VYYAsDQQqyI8vCCexofRRfTawYUFGAEsncCKIiWJ/OXilhTpQQBDknw95iqMbsHtM7mvguzkJK8M9HKmzDvuTg1cGQEsdgcTRDOP4Zm8OxUOeJJNB6AT6oR2muP43D6iKmQpguJuQOgfxGJPdUxH4EI0=='{ "statusCode": 200, "statusString": "Model Import with name [nbra_prj_iris_1] for customer [demo] projectName [iris]", "values": {}}{ "statusCode": 500, "statusString": "Generic Exception [javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher]", "values": {}}Export model GET
Exports a model as an AES-encrypted, base64-encoded blob. Note the path segment is singular `model`, and there is **no `{model}` path segment** — the model name is passed as the `modelId` query parameter. The response is the standard `JSONResponse` envelope, not raw `application/octet-stream` binary.
Get model code GET
Generate executable code for a trained model. Only `java` and `sql` are supported (`CoreConstants.MODEL_LANGUAGE_JAVA`/`_SQL`); any other value throws and surfaces as a `500`. Not every model type supports both languages. `language` is **required** — there is no default; an omitted or empty value is a `400`. The response body is the standard `JSONResponse` envelope (`values.string`) — but the `Content-Type` response header is `text/plain` on every status code (200/400/500), not `application/json`. The body content itself is still JSON text; only the header is misleading.