/integrations/{connectionId}/settingsintegrationsUpdate per-connection sync settings
Ecosystem-authorized, validated write of the caller-tunable sync settings the sync worker reads (e.g. gmailLabelIds / gmailWindowDays / redditSubreddits / redditKeywords). The owning ecosystem is derived from the connection; the caller must manage it. 404 when absent/deleted; 403 when the caller cannot manage its ecosystem; 400 on an invalid body.
Auth: bearerAuth — calls run as the authenticated user.
- connectionIdpathstring
application/json · optional
- gmailLabelIdsoptionalstring[]
Gmail label ids to sync (default INBOX).
- gmailWindowDaysoptionalinteger
Days of history to sync (default 30, max 366).
- redditSubredditsoptionalstring[]
Subreddits to watch (name or r/name; max 50).
- redditKeywordsoptionalstring[]
Keywords to match within watched subreddits (max 50).
{
"gmailLabelIds": [
"string"
],
"gmailWindowDays": 0,
"redditSubreddits": [
"string"
],
"redditKeywords": [
"string"
]
}Updated sync settings
- okboolean
- syncSettingsobject
{
"ok": true,
"syncSettings": {}
}Problem Details (RFC 9457)
- typeoptionalstring
URI identifying the problem type; 'about:blank' when unspecified
- titlestring
Short, human-readable summary of the problem type
- statusinteger
HTTP status code, duplicated in the body
- detailoptionalstring
Explanation specific to this occurrence
- instanceoptionalstring
URI reference for this occurrence (the request path)
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}Problem Details (RFC 9457)
- typeoptionalstring
URI identifying the problem type; 'about:blank' when unspecified
- titlestring
Short, human-readable summary of the problem type
- statusinteger
HTTP status code, duplicated in the body
- detailoptionalstring
Explanation specific to this occurrence
- instanceoptionalstring
URI reference for this occurrence (the request path)
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}Problem Details (RFC 9457)
- typeoptionalstring
URI identifying the problem type; 'about:blank' when unspecified
- titlestring
Short, human-readable summary of the problem type
- statusinteger
HTTP status code, duplicated in the body
- detailoptionalstring
Explanation specific to this occurrence
- instanceoptionalstring
URI reference for this occurrence (the request path)
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}Problem Details (RFC 9457)
- typeoptionalstring
URI identifying the problem type; 'about:blank' when unspecified
- titlestring
Short, human-readable summary of the problem type
- statusinteger
HTTP status code, duplicated in the body
- detailoptionalstring
Explanation specific to this occurrence
- instanceoptionalstring
URI reference for this occurrence (the request path)
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}curl -X PATCH "https://api.agenticdeveloperhub.com/integrations/{connectionId}/settings" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"gmailLabelIds": [
"string"
],
"gmailWindowDays": 0,
"redditSubreddits": [
"string"
],
"redditKeywords": [
"string"
]
}'const res = await fetch("https://api.agenticdeveloperhub.com/integrations/{connectionId}/settings", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"gmailLabelIds\": [\n \"string\"\n ],\n \"gmailWindowDays\": 0,\n \"redditSubreddits\": [\n \"string\"\n ],\n \"redditKeywords\": [\n \"string\"\n ]\n}",
});
const data = await res.json();