curl --request PUT \
--url https://api.eddy.engineer/v1/connectors/{id}/credential \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"account": "<string>",
"api_key": "<string>",
"client_cert": "<string>",
"client_id": "<string>",
"client_key": "<string>",
"client_secret": "<string>",
"password": "<string>",
"tenant_uid": "<string>",
"username": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/connectors/{id}/credential"
payload = {
"account": "<string>",
"api_key": "<string>",
"client_cert": "<string>",
"client_id": "<string>",
"client_key": "<string>",
"client_secret": "<string>",
"password": "<string>",
"tenant_uid": "<string>",
"username": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
api_key: '<string>',
client_cert: '<string>',
client_id: '<string>',
client_key: '<string>',
client_secret: '<string>',
password: '<string>',
tenant_uid: '<string>',
username: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/connectors/{id}/credential', 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.eddy.engineer/v1/connectors/{id}/credential",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account' => '<string>',
'api_key' => '<string>',
'client_cert' => '<string>',
'client_id' => '<string>',
'client_key' => '<string>',
'client_secret' => '<string>',
'password' => '<string>',
'tenant_uid' => '<string>',
'username' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://api.eddy.engineer/v1/connectors/{id}/credential"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://api.eddy.engineer/v1/connectors/{id}/credential")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/connectors/{id}/credential")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Set your own, or your org's, credential for a connector (IG3)
The connector’s named fields, flat in the body (fields of its /v1/connectors row: Nexar and DigiKey client_id + client_secret, TraceParts tenant_uid + api_key, McMaster-Carr client_cert + client_key + username + password (the two certificate fields at most 10 KiB together), every other connector api_key), with an optional account label (what the connector records as retrieved_under) and scope: user (the default, the caller’s own) or scope: org (an org admin’s, for the org they act in). The fields are sealed as one object under their own data key wrapped by the deployment’s key-encryption key, the owner and the connector as associated data (the CR5 envelope). Resolution on a call: the person’s own credential, else the org’s, else the deployment’s environment; own-account connectors (Nexar, DigiKey, Mouser, McMaster-Carr) take the deployment’s only with SS_DEV_SINGLE_USER=1 on an engine with no sign-in, and a personal key answers only in the org it was saved in. Set and clear only: no field is ever answered, logged, put in a URL or in a tool’s arguments; a refusal names the field, never the value. Base URLs stay deployment settings. Refused 403 for an app or an agent run, 404 for an unknown connector, 503 KMS_UNCONFIGURED when the deployment cannot hold a credential.
curl --request PUT \
--url https://api.eddy.engineer/v1/connectors/{id}/credential \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"account": "<string>",
"api_key": "<string>",
"client_cert": "<string>",
"client_id": "<string>",
"client_key": "<string>",
"client_secret": "<string>",
"password": "<string>",
"tenant_uid": "<string>",
"username": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/connectors/{id}/credential"
payload = {
"account": "<string>",
"api_key": "<string>",
"client_cert": "<string>",
"client_id": "<string>",
"client_key": "<string>",
"client_secret": "<string>",
"password": "<string>",
"tenant_uid": "<string>",
"username": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
api_key: '<string>',
client_cert: '<string>',
client_id: '<string>',
client_key: '<string>',
client_secret: '<string>',
password: '<string>',
tenant_uid: '<string>',
username: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/connectors/{id}/credential', 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.eddy.engineer/v1/connectors/{id}/credential",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account' => '<string>',
'api_key' => '<string>',
'client_cert' => '<string>',
'client_id' => '<string>',
'client_key' => '<string>',
'client_secret' => '<string>',
'password' => '<string>',
'tenant_uid' => '<string>',
'username' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://api.eddy.engineer/v1/connectors/{id}/credential"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://api.eddy.engineer/v1/connectors/{id}/credential")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/connectors/{id}/credential")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account\": \"<string>\",\n \"api_key\": \"<string>\",\n \"client_cert\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_key\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"password\": \"<string>\",\n \"tenant_uid\": \"<string>\",\n \"username\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Path Parameters
Body
Response
The connector's row for this caller
The connector's row as GET /v1/connectors answers it for this caller: id, family, sidecar, configured, key_present, key_source (user | org | deployment | null), fingerprint, fields, user / org (fingerprint, account, set_by, set_at_unix_ms), can_set_org, can_set_user, base_url, account, scope, live, live_detail -- never a field of the credential.