Upsert Transform
POST
/pipelines/save-transform
Creates or updates a pipeline transform
Request
Headers
An API Key is required to access this endpoint.
x-api-key
your_api_key
Body
id
string
Unique ID for the pipeline.
Transform
Transform ID is required when updating an existing transform.
id
string
Unique ID for the transform.
modelType
enum
Supported enums:
OCR
CATEGORIZE
CHAPTERIZE
CUSTOM_PROMPT
EXTRACT
SENTIMENT
SUMMARIZE
TRANSLATE
name
string
Field name for the transform.
parentFieldIds
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.
defaultValue
string (optional)
Default is null if not specified.
options
string[]
List of options for categorization.
defaultValue
string (optional)
Default is null if not specified.
prompt
string
Prompt to use.
type
enum
Supported enums:
boolean
date
number
string
defaultValue
string (optional)
Default is null if not specified.
description
string
Description of the extracted value.
prompt
string (optional)
Additional context for the prompt.
type
enum
Supported enums:
boolean
date
number
string
defaultValue
string (optional)
Default is null if not specified.
sentimentType
enum
Supported enums:
enum
scale
prompt
string (optional)
Additional context for the prompt.
summaryLength
number
Number indicating summary length: 1 for short, 2 for medium, and 3 for long.
summaryType
enum
Supported enums:
bullets
headline
paragraph
translateFrom
string
Source language for translation. Use two-letter lowercase abbreviation.
translateTo
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