curl --request PATCH \
--url https://flow.seekr.com/v1/flow/data-jobs/{data_job_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"instructions": "<string>",
"vector_database_id": "<string>"
}
'import requests
url = "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"instructions": "<string>",
"vector_database_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
instructions: '<string>',
vector_database_id: '<string>'
})
};
fetch('https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'system_prompt' => '<string>',
'instructions' => '<string>',
'vector_database_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"user_id": "<string>",
"name": "<string>",
"job_type": "<string>",
"alignment_job_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "file_processing",
"origin_data_job_id": "<string>",
"deleted": false,
"status_message": "<string>",
"system_prompt": "<string>",
"system_prompt_updated_at": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"instructions_updated_at": "2023-11-07T05:31:56Z",
"resolved_instructions": "<string>",
"vector_database_id": "<string>",
"additional_alignment_file_ids": [
"<string>"
],
"ingestion_jobs": [
{
"id": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"file_ids": [
"<string>"
],
"records": [
{
"record_id": "<string>",
"ingestion_job_id": "<string>",
"alignment_file_id": "<string>",
"user_id": "<string>",
"filename": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"metaflow_job_id": "<string>",
"method": "<string>",
"queue_position": 123,
"error_message": "<string>",
"suggested_fix": "<string>",
"worker_id": "<string>",
"deleted": false,
"processing_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"progress": 123,
"progress_at": "2023-11-07T05:31:56Z",
"projected_progress": 123,
"projected_progress_at": "2023-11-07T05:31:56Z"
}
]
}
],
"alignment_job": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "pending",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"stopped_at": "2023-11-07T05:31:56Z",
"current_step": "<string>",
"step_progress": 123,
"progress": 123,
"estimated_completion_at": "2023-11-07T05:31:56Z",
"eta_minutes": 123,
"status_message": "<string>",
"output_files": [
{
"id": "<string>",
"filename": "<string>",
"bytes": 123,
"created_at": "2023-11-07T05:31:56Z",
"file_type": "jsonl",
"purpose": "reinforcement-fine-tune"
}
]
},
"files": [
{
"file_id": "<string>",
"record_id": "<string>",
"name": "<string>",
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"suggested_fix": "<string>",
"bytes": 123
}
],
"fine_tuning_job_ids": [
"<string>"
],
"timeline": [
{
"timestamp": "2023-11-07T05:31:56Z",
"event_type": "<string>",
"message": "<string>",
"metadata": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Update data job
Update the details of an existing data job.
curl --request PATCH \
--url https://flow.seekr.com/v1/flow/data-jobs/{data_job_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"instructions": "<string>",
"vector_database_id": "<string>"
}
'import requests
url = "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"instructions": "<string>",
"vector_database_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
instructions: '<string>',
vector_database_id: '<string>'
})
};
fetch('https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'system_prompt' => '<string>',
'instructions' => '<string>',
'vector_database_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"instructions\": \"<string>\",\n \"vector_database_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"user_id": "<string>",
"name": "<string>",
"job_type": "<string>",
"alignment_job_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "file_processing",
"origin_data_job_id": "<string>",
"deleted": false,
"status_message": "<string>",
"system_prompt": "<string>",
"system_prompt_updated_at": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"instructions_updated_at": "2023-11-07T05:31:56Z",
"resolved_instructions": "<string>",
"vector_database_id": "<string>",
"additional_alignment_file_ids": [
"<string>"
],
"ingestion_jobs": [
{
"id": "<string>",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"file_ids": [
"<string>"
],
"records": [
{
"record_id": "<string>",
"ingestion_job_id": "<string>",
"alignment_file_id": "<string>",
"user_id": "<string>",
"filename": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"metaflow_job_id": "<string>",
"method": "<string>",
"queue_position": 123,
"error_message": "<string>",
"suggested_fix": "<string>",
"worker_id": "<string>",
"deleted": false,
"processing_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"progress": 123,
"progress_at": "2023-11-07T05:31:56Z",
"projected_progress": 123,
"projected_progress_at": "2023-11-07T05:31:56Z"
}
]
}
],
"alignment_job": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "pending",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"stopped_at": "2023-11-07T05:31:56Z",
"current_step": "<string>",
"step_progress": 123,
"progress": 123,
"estimated_completion_at": "2023-11-07T05:31:56Z",
"eta_minutes": 123,
"status_message": "<string>",
"output_files": [
{
"id": "<string>",
"filename": "<string>",
"bytes": 123,
"created_at": "2023-11-07T05:31:56Z",
"file_type": "jsonl",
"purpose": "reinforcement-fine-tune"
}
]
},
"files": [
{
"file_id": "<string>",
"record_id": "<string>",
"name": "<string>",
"type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"suggested_fix": "<string>",
"bytes": 123
}
],
"fine_tuning_job_ids": [
"<string>"
],
"timeline": [
{
"timestamp": "2023-11-07T05:31:56Z",
"event_type": "<string>",
"message": "<string>",
"metadata": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.
Path Parameters
Body
1 - 256System prompt included with every conversation in the generated dataset. It becomes part of the training data the fine-tuned model learns from, unlike instructions, which only shapes how the dataset is generated. If omitted, one is generated for you from instructions and the source documents.
1 - 32768Natural-language description of the task the generated dataset should support. Alignment uses it to shape the examples it produces, such as the topics and the kinds of questions a fine-tuned model should be able to handle.
1 - 32768Response
Success
Extends DataJobResponse Full detail payload for the per-job view.
Status values that exist BEFORE an alignment job is linked. Once linked, the real status comes from AlignmentJobStatus directly — see DataJobResponse.status's union type and derive_data_job_status.
file_processing, needs_review, ready_to_start Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?