connectors.update(id, spec): sets which sides exist and the outbound rate limit
curl --request PUT \
--url https://api.paddock.build/v1/connectors/{idOrName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inbound": {},
"outbound": {}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({inbound: {}, outbound: {}})
};
fetch('https://api.paddock.build/v1/connectors/{idOrName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paddock.build/v1/connectors/{idOrName}"
payload = {
"inbound": {},
"outbound": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paddock.build/v1/connectors/{idOrName}"
payload := strings.NewReader("{\n \"inbound\": {},\n \"outbound\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"id": "<string>",
"name": "<string>",
"secrets": [
"<string>"
],
"inbound": {
"url": "<string>",
"functionSummary": {
"runtime": "nodejs24.x",
"preset": "<string>",
"presetCode": true,
"version": 2,
"codeSha256": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"outbound": {
"functionSummary": {
"runtime": "nodejs24.x",
"preset": "<string>",
"presetCode": true,
"version": 2,
"codeSha256": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"rateLimit": {
"perMinute": 300
},
"credentialError": {
"reason": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Connectors
connectors.update(id, spec): sets which sides exist and the outbound rate limit
PUT
/
connectors
/
{idOrName}
connectors.update(id, spec): sets which sides exist and the outbound rate limit
curl --request PUT \
--url https://api.paddock.build/v1/connectors/{idOrName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inbound": {},
"outbound": {}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({inbound: {}, outbound: {}})
};
fetch('https://api.paddock.build/v1/connectors/{idOrName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paddock.build/v1/connectors/{idOrName}"
payload = {
"inbound": {},
"outbound": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.paddock.build/v1/connectors/{idOrName}"
payload := strings.NewReader("{\n \"inbound\": {},\n \"outbound\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"id": "<string>",
"name": "<string>",
"secrets": [
"<string>"
],
"inbound": {
"url": "<string>",
"functionSummary": {
"runtime": "nodejs24.x",
"preset": "<string>",
"presetCode": true,
"version": 2,
"codeSha256": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"outbound": {
"functionSummary": {
"runtime": "nodejs24.x",
"preset": "<string>",
"presetCode": true,
"version": 2,
"codeSha256": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"rateLimit": {
"perMinute": 300
},
"credentialError": {
"reason": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Body
application/json
Response
The connector