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.
userType
String
required
The type of the user making the request.
The type of the user making the request.
portal
userToken
String
The user token provided in the header.
The user token provided in the header.
eyJ1c2VybmFtZSI6Imluc3RydWN0b3IifQ==
traceparent
String
W3C Trace Context header for distributed tracing.
W3C Trace Context header for distributed tracing.
00-47b4b549217cde861fb60fe0c276a29b-f39e92d2c8619ae9-01
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_bodyconst 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);Request payload for creating a new pipeline job.
filesobjectList of files to be processed by the pipeline.
List of files to be processed by the pipeline.
namestringrequiredName of the file, max 1024 characters
Name of the file, max 1024 characters
chunking_strategyobjectStrategy to use for chunking the file content.
Strategy to use for chunking the file content.
string (Enum)Strategy to use for chunking the file, if applicable.
Strategy to use for chunking the file, if applicable.
pathstringrequiredRelative path of the file within the estate or bucket.
Relative path of the file within the estate or bucket.
estate_urlobjectURL of the estate where the file is located, required if source is s3.
URL of the estate where the file is located, required if source is s3.
stringURL of the estate where the file is located, required if source is s3.
URL of the estate where the file is located, required if source is s3.
entity_idstringrequiredUUID of the entity associated with the files.
UUID of the entity associated with the files.
sourcestringrequiredSource type of the files (for example, s3).
Source type of the files (for example, s3).
{
"files": null,
"entity_id": "example",
"source": "example"
}