Create Portal Embeddings Queue

Hitachi iQ Studio REST API Reference Guide

Version
1.1.x
File Size
4495 KB
Audience
anonymous
Part Number
MK-26HIQS002-00
ft:lastEdition
2026-09-15
post /public/api/v1/pipelines

This API creates a new pipeline based on the provided pipeline request.

Input:

  • pipeline_request (PipelinesRequest): The request body contains the details of the new pipeline.
  • userType (str): The type of the user making the request, provided in the header.
  • userToken (str): The authorization token of the user making the request, provided in the header.
  • traceparent (str, optional): W3C Trace Context header for distributed tracing, provided in the header.

Output: The response contains the details of the created pipeline.

Authentication: BearerAuth HTTP - bearer scheme
Request headers
userType String required

The type of the user making the request.

Example: portal
userToken String

The user token provided in the header.

Example: eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==
traceparent String

W3C Trace Context header for distributed tracing.

Example: 00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01
CLIENT REQUEST
curl -X 'POST'
-H "Authorization: Bearer [[accessToken]]" \
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'userType: portal' -H 'userToken: eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==' -H 'traceparent: 00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01'
'http://localhost/public/api/v1/pipelines'
-d '{ "files" : [ { "path" : "path", "estate_url" : "estate_url", "name" : "name" }, { "path" : "path", "estate_url" : "estate_url", "name" : "name" } ], "source" : "source", "entity_id" : "entity_id" }'
import http.client conn = http.client.HTTPConnection("undefinedundefined") payload = "{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}" headers = { 'userType': "portal", 'userToken': "eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==", 'traceparent': "00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01", 'Authorization': "Bearer REPLACE_BEARER_TOKEN", 'content-type': "application/json" } conn.request("POST", "/public/api/v1/pipelines", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
require 'uri' require 'net/http' url = URI("http://undefinedundefined/public/api/v1/pipelines") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["userType"] = 'portal' request["userToken"] = 'eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==' request["traceparent"] = '00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01' request["Authorization"] = 'Bearer REPLACE_BEARER_TOKEN' request["content-type"] = 'application/json' request.body = "{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}" response = http.request(request) puts response.read_body
const data = JSON.stringify({ "files": [ { "name": "string", "chunking_strategy": "general", "path": "string", "estate_url": "string" } ], "entity_id": "string", "source": "string" }); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "http://undefinedundefined/public/api/v1/pipelines"); xhr.setRequestHeader("userType", "portal"); xhr.setRequestHeader("userToken", "eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ=="); xhr.setRequestHeader("traceparent", "00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01"); xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); xhr.setRequestHeader("content-type", "application/json"); xhr.send(data);
HttpResponse<String> response = Unirest.post("http://undefinedundefined/public/api/v1/pipelines") .header("userType", "portal") .header("userToken", "eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==") .header("traceparent", "00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01") .header("Authorization", "Bearer REPLACE_BEARER_TOKEN") .header("content-type", "application/json") .body("{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}") .asString();
import Foundation let headers = [ "userType": "portal", "userToken": "eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==", "traceparent": "00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01", "Authorization": "Bearer REPLACE_BEARER_TOKEN", "content-type": "application/json" ] let parameters = [ "files": [ [ "name": "string", "chunking_strategy": "general", "path": "string", "estate_url": "string" ] ], "entity_id": "string", "source": "string" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "http://undefinedundefined/public/api/v1/pipelines")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "http://undefinedundefined/public/api/v1/pipelines", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}", CURLOPT_HTTPHEADER => [ "Authorization: Bearer REPLACE_BEARER_TOKEN", "content-type: application/json", "traceparent: 00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01", "userToken: eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==", "userType: portal" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "http://undefinedundefined/public/api/v1/pipelines"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "userType: portal"); headers = curl_slist_append(headers, "userToken: eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ=="); headers = curl_slist_append(headers, "traceparent: 00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01"); headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); headers = curl_slist_append(headers, "content-type: application/json"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}"); CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("http://undefinedundefined/public/api/v1/pipelines"); var request = new RestRequest(Method.POST); request.AddHeader("userType", "portal"); request.AddHeader("userToken", "eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ=="); request.AddHeader("traceparent", "00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01"); request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN"); request.AddHeader("content-type", "application/json"); request.AddParameter("application/json", "{\"files\":[{\"name\":\"string\",\"chunking_strategy\":\"general\",\"path\":\"string\",\"estate_url\":\"string\"}],\"entity_id\":\"string\",\"source\":\"string\"}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);
Body parameters
required
application/json

Request payload for creating a new pipeline job.

filesobject

List of files to be processed by the pipeline.

[
namestringrequired

Name of the file, max 1024 characters

chunking_strategyobject

Strategy to use for chunking the file content.

string (Enum)

Strategy to use for chunking the file, if applicable.

Allowed values:"general""manuals""one""book""laws""presentation""email""paper"
pathstringrequired

Relative path of the file within the estate or bucket.

estate_urlobject

URL of the estate where the file is located, required if source is s3.

string

URL of the estate where the file is located, required if source is s3.

]
entity_idstringrequired

UUID of the entity associated with the files.

sourcestringrequired

Source type of the files (for example, s3).

REQUEST
{ "files": null, "entity_id": "example", "source": "example" }
Responses

Pipeline request accepted and queued successfully.

Body
application/json

Response returned when a pipeline job is successfully queued.

job_idstringrequired

Unique identifier for the queued pipeline job.

job_namestringrequired

Human-readable job name for the queued pipeline job.

file_validationobject

Optional validation summary for accepted, rejected, or evicted files.

validation_statusstringrequired

Overall validation result for the submitted files.

messagestringrequired

Summary of the file validation outcome.

summaryobjectrequired

Counts of processed and rejected files.

Additional propertiesinteger
processed_filesarrayrequired

Files accepted for processing, including assigned strategies.

[
Free-Form object
]
rejected_filesarrayrequired

Files rejected from processing with rejection reasons.

[
Free-Form object
]
warningsarray[string]required

Non-fatal validation warnings.

RESPONSE
{ "job_id": "6d8cf3e7-f4cb-4cdb-bf95-2d4f2d207818", "job_name": "JOB-000123", "file_validation": { "validation_status": "success", "message": "Files validated successfully", "summary": { "total": 1, "processed": 1, "rejected": 0 }, "processed_files": [ { "file_name": "example.pdf", "chunking_strategy": "general" } ], "rejected_files": [], "warnings": [] } }

Created

Body
application/json

Standard success response returned for operations that do not return data.

messagestringrequired

A human-readable message indicating the result of the operation.

RESPONSE
{ "message": "example" }

Internal Server Error

Body
application/json

Standard error response returned when a request fails.

statusintegerrequired

HTTP status code of the error.

errorstringrequired

A short description of the error that occurred.

pathstringrequired

The API path where the error occurred.

RESPONSE
{ "status": 0, "error": "example", "path": "example" }

Validation Error

Body
application/json

Response returned when request validation fails.

detailarray

List of validation errors encountered in the request.

[
locarrayrequired

The location of the error in the request (e.g., body, query, path).

[
string
integer
]
msgstringrequired

A human-readable message describing the validation error.

typestringrequired

The type of validation error that occurred.

]
RESPONSE
{ "detail": [ { "loc": [ 0 ], "msg": "example", "type": "example" } ] }