Get, Update & Delete Source
curl --request GET \
--url https://api.example.com/v0/sources/{id}import requests
url = "https://api.example.com/v0/sources/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/sources/{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://api.example.com/v0/sources/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/sources/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/sources/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/sources/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodySources
Get, Update & Delete Source
GET, PATCH and DELETE /v0/sources/:id
GET
/
v0
/
sources
/
{id}
Get, Update & Delete Source
curl --request GET \
--url https://api.example.com/v0/sources/{id}import requests
url = "https://api.example.com/v0/sources/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/sources/{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://api.example.com/v0/sources/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/sources/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/sources/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/sources/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDraft — needs review
Auth:Authorization: Bearer tr_...
GET /v0/sources/{id}
Returns one source with its adapter, bindings, schedule, config and health.
rip source show <id>
PATCH /v0/sources/{id}
| Field | Type | Description |
|---|---|---|
name | string | Rename within the scope |
connection | string | null | Bind a different connection. null unbinds |
brain | string | null | Link a different brain. null unlinks |
intervalMinutes | integer | 5–1440 |
config | object | Replaces the adapter config, validated strictly |
taskKind | string | null | The kind of task to file per landed item. null stops filing tasks (facts only) |
assigneeRule | string | creator, recorder, none, or a member’s account id / alias |
rip source update <id> --interval 30 --assignee-rule creator
cron source cannot have its taskKind cleared, and a binding an adapter doesn’t need is refused even when the call was about something else.
DELETE /v0/sources/{id}
Deleting a source deletes its item ledger, which is the dedupe history. The tasks and artifacts it already produced are kept — but a recreated source will land the same items again.
rip source delete <id>
Error codes
| Error | Description |
|---|---|
SOURCE_NOT_FOUND | No such source in this scope |
INVALID_SOURCE_CONFIG | A binding the adapter does not use, or a cron source left without a taskKind |
INVALID_CONFIG | The config failed the adapter’s schema |
INVALID_FIELD | intervalMinutes outside 5–1440, or a bad taskKind |
CONNECTION_NOT_FOUND / WORKSPACE_NOT_FOUND | The named connection or brain does not exist in this scope |
NOT_A_MEMBER / TEAM_NOT_FOUND | Team scope problems |
Operator mirror
GET, PATCH and DELETE /v0/operator/sources/{id}.