Upsert Transform
POST
/pipelines/save-transform
Creates or updates a pipeline transform
Request
Headers
An API Key is required to access this endpoint.
Name | Value |
---|---|
x-api-key |
|
Body
Name | Type | Description |
---|---|---|
| string | Unique ID for the pipeline. |
| Transform object. |
Transform
Transform ID is required when updating an existing transform.
Name | Type | Description |
---|---|---|
| string | Unique ID for the transform. |
| Config options specific to the model. | |
| enum | Supported enums:
|
| string | Field name for the transform. |
| string[] | Array of ids to the parameters (or other transforms) used in the transform input. |
ModelConfig
The config varies based on the type of model being used. CHAPTERIZE and OCR
does not require a config.
Name | Type | Description |
---|---|---|
| string (optional) | Default is null if not specified. |
| string[] | List of options for categorization. |
Name | Type | Description |
---|---|---|
| string (optional) | Default is null if not specified. |
| string | Prompt to use. |
| enum | Supported enums:
|
Name | Type | Description |
---|---|---|
| string (optional) | Default is null if not specified. |
| string | Description of the extracted value. |
| string (optional) | Additional context for the prompt. |
| enum | Supported enums:
|
Name | Type | Description |
---|---|---|
| string (optional) | Default is null if not specified. |
| enum | Supported enums:
|
Name | Type | Description |
---|---|---|
| string (optional) | Additional context for the prompt. |
| number | Number indicating summary length: 1 for short, 2 for medium, and 3 for long. |
| enum | Supported enums:
|
Name | Type | Description |
---|---|---|
| string | Source language for translation. Use two-letter lowercase abbreviation. |
| string | Target language for translation. Use two-letter lowercase abbreviation. |
Example
Response
The API returns the response in JSON format.
Each response includes a success
boolean and transformId
.
Example
Last updated