Registrar o rotar una credencial de conector
curl --request PUT \
--url https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authMode": "<string>",
"connectorType": "<string>",
"credential": {},
"credentialsRef": "<string>"
}
'import requests
url = "https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials"
payload = {
"authMode": "<string>",
"connectorType": "<string>",
"credential": {},
"credentialsRef": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authMode: '<string>',
connectorType: '<string>',
credential: {},
credentialsRef: '<string>'
})
};
fetch('https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials', 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://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials",
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([
'authMode' => '<string>',
'connectorType' => '<string>',
'credential' => [
],
'credentialsRef' => '<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://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials"
payload := strings.NewReader("{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authMode": "<string>",
"connectorType": "<string>",
"credentialsRef": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}Registrar o rotar una credencial de conector
Aprovisiona la credencial saliente por conector de una institución en el almacén de secretos y persiste solo su referencia. La institución se deriva de la identidad de la solicitud validada; el cuerpo no lleva institutionId. La credencial en texto plano nunca se registra ni se devuelve — la respuesta retorna solo el localizador de la referencia.
PUT
/
v1
/
institution
/
connector
/
credentials
Registrar o rotar una credencial de conector
curl --request PUT \
--url https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authMode": "<string>",
"connectorType": "<string>",
"credential": {},
"credentialsRef": "<string>"
}
'import requests
url = "https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials"
payload = {
"authMode": "<string>",
"connectorType": "<string>",
"credential": {},
"credentialsRef": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authMode: '<string>',
connectorType: '<string>',
credential: {},
credentialsRef: '<string>'
})
};
fetch('https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials', 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://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials",
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([
'authMode' => '<string>',
'connectorType' => '<string>',
'credential' => [
],
'credentialsRef' => '<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://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials"
payload := strings.NewReader("{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sisbajud.sandbox.lerian.net/v1/institution/connector/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authMode\": \"<string>\",\n \"connectorType\": \"<string>\",\n \"credential\": {},\n \"credentialsRef\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authMode": "<string>",
"connectorType": "<string>",
"credentialsRef": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}¿Esta página le ayudó?
Configurar institución y aprovisionar claves
Anterior
Obtén el estado de las credenciales de Dataprev
Siguiente
⌘I

