Create encoder
Create a new, empty Encoder for the calling customer. The request body is optional; when present it's a `KSVSMap`-shaped JSON object whose first entry may set `minTrimSize` (a bin is only used if it has at least this many observations; unset entries below the trim size fall back to the encoder's overall mean). Defaults to `1` if omitted.
Create a new, empty Encoder for the calling customer. The request body is optional; when present it's a KSVSMap-shaped JSON object whose first entry may set minTrimSize (a bin is only used if it has at least this many observations; unset entries below the trim size fall back to the encoder's overall mean). Defaults to 1 if omitted.
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
Query Parameters
The attribute name this encoder is trained against.
Single-character target attribute type: B (binary, default) or C (continuous).
"B"Value in
- "B"
- "C"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/c1/encoders/create?encodername=superenc0&targetName=clicked" \ -H "Content-Type: application/json" \ -d '{ "values": [ { "minTrimSize": "10" } ] }'{ "statusCode": 201, "statusString": "Encoder[superenc0] with Target[clicked0] created for Customer[c1]", "values": {}}{ "statusCode": 400, "statusString": "java.lang.IllegalArgumentException: Invalid Encoder Name: string len == 0", "values": {}}{ "statusCode": 409, "statusString": "Customer[c1] already has Encoder[superenc1].", "values": {}}Detach data source from project GET
Detach a data source from a project. Detaching a data source that is not currently attached is not an error — the request still succeeds.
Bulk-create encoder key values POST
Bulk-insert raw key/value/count/sum rows into an Encoder — the lower-level counterpart to [Update encoder from an inline DataFrame](/docs/api-reference/encoders/encoders-encodername-learn-post)/ [Update encoder from a data source (async job)](/docs/api-reference/encoders/encoders-encodername-learnds-post), used to seed or migrate an encoder's internal counts directly rather than deriving them from a DataFrame/data source. Each row: - **`Key`**: the categorical attribute name. - **`Value`**: one of that attribute's observed values. - **`Count`**/**`Sum`**: accumulate against whatever the encoder already holds for that key/value pair — this endpoint *adds*, it does not replace (see [Overwrite encoder key values](/docs/api-reference/encoders/encoders-encodername-keyvals-key-setvalues-post) for a per-key overwrite). Send in chunks for large uploads; there's no single-request size limit enforced, but the reference client chunks at 8192 rows.