Adds one resource to a connector without going through Configure Connector. This call does not start a sync: the next scheduled sync picks up the resource.
Use this only for resources the connector does not have yet. On a resource_id that already exists, this call returns 409 and changes nothing.To change a resource that is already configured, use Update Connector Resource for instructions and ACL, or Configure Connector for name, type, routing, and metadata. To start a resource over, delete it with Delete Connector Resource, then add it again.
Take resource_id and resource_type from Discover Resources, and always send display_name, since it is what the dashboard shows for the resource.
Errors
400: a field is invalid or not accepted.
404: no connector with this id in your organization.
409: the connector already has a resource with this resource_id. Nothing was changed.
422: on some connectors, HydraDB tests access to the resource first, and the provider refused it. The message says why.
Send your API key as Authorization: Bearer <your_api_key>.
Path Parameters
id
string
required
Connector ID
Example:
"HydraDoc1234"
Body
application/json
Resource configuration
resource_id
string
required
Resource identifier from the Discover endpoint.
Example:
"C0123456789"
acl
string[]
Restricts every object synced from this resource to the listed principals (emails or prefixed principals). Omitted means unrestricted. See Access Control.
additional_metadata
object
Key-value pairs merged into the additional metadata of every synced object. Up to 1 KiB of compact JSON, checked when synced objects are ingested.
Show child attributes
Example:
{ "author": "ada", "doc_version": 3 }
collection_override
string
Routes objects synced from this resource into a specific collection. Empty means the connector's collection.
custom_instructions
string
Ingestion and indexing instructions for this resource, replacing the connector's custom_instructions; empty inherits it. Up to 4000 characters.
database_override
string
Routes objects synced from this resource into a different database. Empty means the connector's database.
display_name
string
Human-readable name for this resource.
Example:
"general"
filters
object
Provider-specific filters applied during sync (e.g. {"lookback_days": 30}).
Show child attributes
Example:
{ "channel": "general" }
metadata
object
Key-value pairs merged into the metadata of every synced object. Up to 16 KiB of compact JSON, checked when synced objects are ingested.
Show child attributes
Example:
{ "department": "finance", "priority": 7 }
provider_metadata
object
Additional provider-supplied metadata for this resource.
Show child attributes
Example:
{ "workspace_id": "T12345ACME" }
resource_type
string
Provider resource type, such as channel, repository, or linear_team.
Example:
"channel"
sub_tenant_id_override
string
deprecated
Deprecated: use collection_override.
tenant_id_override
string
deprecated
Deprecated: use database_override.
Response
Created
acl
string[]
Principals (emails or prefixed principals) allowed to read objects synced from this resource. Absent means unrestricted; provider permissions take precedence where supported.
acl_warning
string
Why this resource's permissions could not be read. Without an access rule of yours, its objects are readable by everyone meanwhile; with one, your rule applies. Clears on the next successful read.
acl_warning_at
string
When acl_warning last changed (RFC 3339). An unchanged warning keeps its original time.
additional_metadata
object
Key-value pairs merged into the additional metadata (additional_metadata) of every object synced from this resource. Provider-generated fields win on conflict.
Show child attributes
Example:
{ "author": "ada", "doc_version": 3 }
backfill_error
string
Most recent failure fetching historical records. Cleared when progress resumes.
backfill_error_at
string
When the historical fetch last failed, in RFC3339 format.
backfill_oldest
string
Oldest point (RFC 3339) the background fetch of older history has reached. Empty when that fetch is finished or not needed.
Example:
"2026-06-01T00:00:00Z"
collection_override
string
Routes this resource's synced objects into a specific collection, overriding the connector's. Formerly sub_tenant_id_override.
connector_id
string
Connector this resource belongs to.
Example:
"conn_abc123"
custom_instructions
string
Ingestion and indexing instructions for this resource, replacing the connector's custom_instructions; empty inherits it. Up to 4000 characters, applied from the next sync.
database_override
string
Database this resource's synced objects are routed to. Empty means the connector's own database.
display_name
string
Human-readable name for this resource.
Example:
"general"
filters
object
Provider-specific filters applied during sync (e.g. {"lookback_days": 30}).
Show child attributes
Example:
{ "channel": "general" }
metadata
object
Key-value pairs merged into the metadata (metadata) of every object synced from this resource. The system fields connector_id and provider always win on conflict.
Show child attributes
Example:
{ "department": "finance", "priority": 7 }
page_acl_warning
string
Set when page-level restrictions in this resource (for example Confluence pages) could not be resolved, so those pages are readable by everyone. Clears after a clean full sync.
page_acl_warning_at
string
When page_acl_warning last changed (RFC 3339).
provider_cursor
string
Bookmark of the last synced position. Non-empty value confirms the first sync has run.
Example:
"1699999999.000100"
provider_metadata
object | null
Additional provider-supplied metadata for this resource.
Show child attributes
Example:
null
resource_id
string
Resource identifier from the Discover endpoint.
Example:
"C0123456789"
resource_type
string
Provider resource type, such as channel, repository, or linear_team.
Example:
"channel"
status
string
Current sync state of this resource (e.g. active, paused).
Example:
"active"
sub_tenant_id_override
string
deprecated
Deprecated: use collection_override.
sync_blocked
boolean
true when syncing stopped because the provider keeps refusing this resource, for example a deleted table or an inaccessible channel. sync_blocked_reason says why.
Example:
true
sync_blocked_at
string
When syncing of this resource was stopped (RFC 3339). Present only while sync_blocked is true.
sync_blocked_reason
string
The provider's explanation for why this resource is blocked. Present only while sync_blocked is true.
tenant_id_override
string
deprecated
Deprecated: use database_override.
unverified
string[]
Present when the resource was saved without being checked, because the provider was rate limiting, slow, or unreachable. Its first sync shows whether it can be read.
warnings
string[]
Present when the resource was saved but returned no records when checked. It stays configured and will index nothing until it has data.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HydraDB","colors":{"primary":"#FF571A","light":"#FF8A54","dark":"#CC4515"},"logo":{"light":"https://mintcdn.com/cortex-e852fafe/BS0KyNLwX-6ZV20u/logo/logo.png?fit=max\u0026auto=format\u0026n=BS0KyNLwX-6ZV20u\u0026q=85\u0026s=8344dc832de70bde023451b8be681c27","dark":"https://mintcdn.com/cortex-e852fafe/BS0KyNLwX-6ZV20u/logo/logo.png?fit=max\u0026auto=format\u0026n=BS0KyNLwX-6ZV20u\u0026q=85\u0026s=8344dc832de70bde023451b8be681c27"},"favicon":"https://mintcdn.com/cortex-e852fafe/s0NUEinSIEJq1NNf/favicon.png?fit=max\u0026auto=format\u0026n=s0NUEinSIEJq1NNf\u0026q=85\u0026s=e7babf84979b4a4cfdba698292f0160a","api":{"examples":{"languages":["python","javascript","curl"]}},"appearance":{"default":"dark"},"background":{"decoration":"grid","color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Website","href":"https://hydradb.com"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"posthog":{"apiKey":"phc_qH6psLVjkWQFAGSmTJoKkpVG9Tj5KUqzULfAn9mYdg79","apiHost":"https://us.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","download-spec","chatgpt","claude"],"display":"header"},"markdown":{"instructions":"AGENTS.md is HydraDB's maintained agent guide. Read https://docs.hydradb.com/AGENTS.md once, then use its content. /llms.txt and /llms-full.txt redirect to the same guide; they are not separate documentation indexes. If the guide is already loaded, continue with it instead of fetching either alias or reloading the guide."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-e852fafe","hasAudioNarration":false,"actualSubdomain":"cortex-e852fafe","customDomains":["docs.hydradb.com"],"gitSource":{"type":"github","owner":"hydra-db","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b081dd8f3da7f068e3ed54f","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":69},{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"Cookbooks","count":14},{"language":"default","tag":"Essentials","count":12},{"language":"default","tag":"Databases","count":10},{"language":"default","tag":"Webhooks","count":10},{"language":"default","tag":"Connectors","count":9},{"language":"default","tag":"Context","count":9},{"language":"default","tag":"Knowledge \u0026 Memories","count":7},{"language":"default","tag":"Tenants","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":where(.mt-8.lg\\:mt-0.flex.flex-col.gap-6.xl\\:hidden.max-h-\\[30rem\\]),:where([class*=\"mt-8\"][class*=\"lg:mt-0\"][class*=\"flex\"][class*=\"flex-col\"][class*=\"gap-6\"][class*=\"xl:hidden\"][class*=\"max-h-[30rem]\"]){display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;width:0!important;padding:0!important;margin:0!important;position:absolute!important;clip:rect(0, 0, 0, 0)!important;overflow:hidden!important}.mdx-content:has(.api-before-related-resources){display:flex;flex-direction:column}.api-before-related-resources{display:none}.mdx-content span[id]:empty{scroll-margin-top:9.5rem}.mdx-content:has(.api-before-related-resources)>div:has(>.api-section){order:1}.mdx-content:has(.api-before-related-resources) .api-before-related-resources~*{order:2}.field-req{color:#ef4444;font-weight:bold;cursor:default}.field-rec{color:#eab308;font-size:0.6em;vertical-align:middle;cursor:default}.field-wrap{display:inline-block;outline:none}.field-name-row{display:inline-block}.field-type{display:inline-block;margin-left:0.35rem;color:#475569;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;font-size:0.78rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}.dark .field-type,[data-theme=\"dark\"] .field-type{color:#cbd5e1}.field-type::before{content:\"(\"}.field-type::after{content:\")\"}.field-tip{position:absolute;bottom:calc(100% + 4px);left:0;z-index:50;display:none;padding:2px 8px;border:1px solid rgba(255,255,255,0.1);border-radius:4px;background:#1f2937;box-shadow:0 2px 8px rgba(0,0,0,0.3);color:#e5e7eb;font-size:0.7rem;font-weight:500;line-height:1.2;pointer-events:none;white-space:nowrap}.has-field-tip:hover .field-tip,.has-field-tip:focus .field-tip,.has-field-tip:focus-within .field-tip{display:inline-block}.peer.is-not-custom.is-not-center~[class~=\"peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl\"]{max-width:104rem!important}"},{"filePath":"footer/footer.css","content":"@font-face{font-family:\"Geist Pixel Square\";src:url(\"/footer/fonts/GeistPixelSquare.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Geist Pixel\";src:url(\"/footer/fonts/GeistPixel.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}.hdb-footer{--hdb-bg: #000;--hdb-border: rgb(53, 53, 53);--hdb-grid: rgb(32, 32, 32);--hdb-fg: #fff;--hdb-fg-66: rgba(255, 255, 255, 0.66);--hdb-fg-60: rgba(255, 255, 255, 0.6);--hdb-accent: #ff571a;--hdb-ease: cubic-bezier(0.44, 0, 0.56, 1);position:relative;width:100%;box-sizing:border-box;margin:0;padding:80px 0;background:var(--hdb-bg);color:var(--hdb-fg);overflow:hidden;isolation:isolate;font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, -apple-system, sans-serif;font-size:16px;line-height:1.2;text-transform:capitalize;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.hdb-footer *,.hdb-footer *::before,.hdb-footer *::after{box-sizing:border-box}.hdb-footer p,.hdb-footer ul,.hdb-footer nav{margin:0;padding:0}.hdb-footer ul{list-style:none}.hdb-footer a{text-decoration:none}.hdb-footer img,.hdb-footer video{display:block}.hdb-footer__grid{position:absolute;inset:0;z-index:0;pointer-events:none;background-image:repeating-linear-gradient(\n 90deg, var(--hdb-grid) 0, var(--hdb-grid) 1px, transparent 1px, transparent 32px\n );background-size:32px 100%;background-position:center}.hdb-footer::before,.hdb-footer::after{content:\"\";position:absolute;left:0;right:0;height:1px;background:var(--hdb-border);z-index:2;pointer-events:none}.hdb-footer::before{top:80px}.hdb-footer::after{bottom:80px}.hdb-footer__card{position:relative;z-index:1;width:87%;margin:0 auto;display:flex;align-items:stretch;background:var(--hdb-bg)}.hdb-footer__card::after{content:\"\";position:absolute;inset:0;border:1px solid var(--hdb-border);pointer-events:none;z-index:4}.hdb-footer__left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.hdb-footer__brand{position:relative;padding:32px}.hdb-footer__brand::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__brand-inner{display:flex;flex-direction:column;gap:24px;max-width:400px}.hdb-footer__logo{display:inline-block;width:180px;height:33px}.hdb-footer__logo img{width:180px;height:33px;object-fit:cover}.hdb-footer__tagline{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:20px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg)}.hdb-footer__cols{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:32px}.hdb-footer__cols-row{display:flex;flex-direction:row;gap:24px}.hdb-footer__col{display:flex;flex-direction:column;gap:12px}.hdb-footer__col:nth-child(1){width:151px}.hdb-footer__col:nth-child(2){width:174px}.hdb-footer__col:nth-child(3){width:175px}.hdb-footer__col:nth-child(4){width:174px}.hdb-footer__list{display:flex;flex-direction:column;gap:12px}.hdb-footer__head{display:block;font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:18px;line-height:1.2;letter-spacing:-0.01em;color:var(--hdb-fg-60);transition:color 0.4s var(--hdb-ease)}.hdb-footer__link{display:block;font-family:\"Geist Pixel\", ui-sans-serif, system-ui, sans-serif;font-size:14px;line-height:1.2;letter-spacing:-0.01em;color:var(--hdb-fg-60);transition:color 0.4s var(--hdb-ease)}.hdb-footer__head:hover,.hdb-footer__link:hover{color:var(--hdb-fg);text-decoration:underline;text-underline-offset:2px}.hdb-footer__col:nth-child(2) .hdb-footer__head,.hdb-footer__col:nth-child(3) .hdb-footer__head,.hdb-footer__col:nth-child(2) .hdb-footer__link,.hdb-footer__col:nth-child(3) .hdb-footer__list li:last-child .hdb-footer__link{letter-spacing:normal}.hdb-footer__badges{display:flex;flex-direction:row;gap:16px}.hdb-footer__badge{width:52px;height:52px;border-radius:50%;object-fit:cover}.hdb-footer__right{position:relative;flex:0 0 33%;min-width:0;display:flex;flex-direction:column}.hdb-footer__right::before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:1px;background:var(--hdb-border);z-index:3}.hdb-footer__social{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:14px 32px}.hdb-footer__social::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__social-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:4px;color:var(--hdb-fg-66);transition:color 0.4s var(--hdb-ease)}.hdb-footer__social-label{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:16px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg-66);white-space:nowrap;transition:color 0.4s var(--hdb-ease)}.hdb-footer__social-link:hover .hdb-footer__social-label{color:var(--hdb-fg)}.hdb-footer__icon{width:24px;height:24px;color:var(--hdb-fg);flex:none}.hdb-footer__video{position:relative;width:100%;height:396px;overflow:hidden}.hdb-footer__video::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hdb-border);z-index:3}.hdb-footer__video-el{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hdb-footer__copy{display:flex;flex-direction:column;justify-content:center;padding:18px 32px;opacity:0.66}.hdb-footer__copy p{font-family:\"Geist Pixel Square\", ui-sans-serif, system-ui, sans-serif;font-size:16px;line-height:1.1;letter-spacing:-0.01em;color:var(--hdb-fg)}.hdb-footer a:focus-visible{outline:2px solid var(--hdb-accent);outline-offset:2px;border-radius:2px}@media (min-width: 1200px) and (max-width: 1439.98px){.hdb-footer__card{width:calc((100% - 80px) * 0.87)}.hdb-footer__social-label{display:none}}@media (min-width: 810px) and (max-width: 1199.98px){.hdb-footer__card{width:calc((100% - 80px) * 0.87);flex-direction:column}.hdb-footer__right{flex:1 1 auto;width:100%}.hdb-footer__right::before{top:0;bottom:auto;left:0;right:0;width:auto;height:1px}.hdb-footer__cols{display:block;padding:32px}.hdb-footer__cols-row{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-auto-flow:column;gap:24px;align-items:start}.hdb-footer__col{width:auto!important}.hdb-footer__badges{margin-top:58px}.hdb-footer__video{height:360px}}@media (max-width: 809.98px){.hdb-footer__card{width:87%;flex-direction:column;padding:0 20px}.hdb-footer__right{flex:1 1 auto;width:100%}.hdb-footer__right::before{top:0;bottom:auto;left:0;right:0;width:auto;height:1px}.hdb-footer__brand{padding:20px}.hdb-footer__cols{display:flex;flex-direction:column;gap:24px;padding:20px}.hdb-footer__cols-row{display:flex;flex-direction:column;gap:24px}.hdb-footer__col{width:auto!important}.hdb-footer__badges{margin-top:0}.hdb-footer__social{padding:14px 20px}.hdb-footer__social-label{display:none}.hdb-footer__video{height:442px}.hdb-footer__copy{padding:18px 20px}}"}]}
{"page":{"pagePath":"api-reference/v2/endpoint/add-connector-resource","slug":"/api-reference/v2/endpoint/add-connector-resource","pageMetadata":{"title":"Add Connector Resource","description":"Add one new resource to a connector.","openapi":"api-reference/v2/openapi.json POST /connectors/{id}/resources","href":"/api-reference/v2/endpoint/add-connector-resource"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add one new resource to a connector.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Adds one resource to a connector without going through `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),`. This call does not start a sync: the next scheduled sync picks up the resource.`]}),`\n`,`\n`,`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use this only for resources the connector does not have yet.`}),` On a `,_jsx(_components.code,{children:`resource_id`}),` that already exists, this call returns `,_jsx(_components.code,{children:`409`}),` and changes nothing.`]}),_jsxs(_components.p,{children:[`To change a resource that is already configured, use `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/update-connector-resource`,children:`Update Connector Resource`}),` for instructions and ACL, or `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),` for name, type, routing, and metadata. To start a resource over, delete it with `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/delete-connector-resource`,children:`Delete Connector Resource`}),`, then add it again.`]})]}),`\n`,_jsxs(_components.p,{children:[`Take `,_jsx(_components.code,{children:`resource_id`}),` and `,_jsx(_components.code,{children:`resource_type`}),` from `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/discover-connector-resources`,children:`Discover Resources`}),`, and always send `,_jsx(_components.code,{children:`display_name`}),`, since it is what the dashboard shows for the resource.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400`}),`: a field is invalid or not accepted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`404`}),`: no connector with this id in your organization.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409`}),`: the connector already has a resource with this `,_jsx(_components.code,{children:`resource_id`}),`. Nothing was changed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422`}),`: on some connectors, HydraDB tests access to the resource first, and the provider refused it. The message says why.`]}),`\n`]}),`\n`,_jsx(`div`,{className:`api-before-related-resources`}),`\n`,_jsx(Heading,{level:`2`,id:`related-resources`,children:`Related resources`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/update-connector-resource`,children:`Update Connector Resource`}),`: change an existing resource`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),`: add several resources and start a sync`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/connector-resources`,children:`List Connector Resources`}),`: see what is configured`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Add Connector Resource","description":"Add one new resource to a connector.","openapi":"api-reference/v2/openapi.json POST /connectors/{id}/resources","href":"/api-reference/v2/endpoint/add-connector-resource"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Adds one resource to a connector without going through `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),`. This call does not start a sync: the next scheduled sync picks up the resource.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Python SDK`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`client.connectors.create_resource(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`{connector_id}`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` resource_id`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"C0123456789\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` resource_type`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"channel\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` display_name`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"general\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` filters`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"lookback_days\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript SDK`,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`connectors`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`createResource`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"{connector_id}\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` resourceId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"C0123456789\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` resourceType:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"channel\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` displayName:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"general\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` filters:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`lookback_days:`}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:` 30`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.hydradb.com/connectors/{id}/resources'`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$HYDRADB_API_KEY`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"API-Version: 2\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"resource_id\": \"C0123456789\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"resource_type\": \"channel\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"display_name\": \"general\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"filters\": { \"lookback_days\": 30 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"connector_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"{connector_id}\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"C0123456789\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_type\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"channel\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"general\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider_cursor\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"database_override\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"collection_override\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"tenant_id_override\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"sub_tenant_id_override\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider_metadata\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"filters\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"lookback_days\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`30`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use this only for resources the connector does not have yet.`}),` On a `,_jsx(_components.code,{children:`resource_id`}),` that already exists, this call returns `,_jsx(_components.code,{children:`409`}),` and changes nothing.`]}),_jsxs(_components.p,{children:[`To change a resource that is already configured, use `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/update-connector-resource`,children:`Update Connector Resource`}),` for instructions and ACL, or `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),` for name, type, routing, and metadata. To start a resource over, delete it with `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/delete-connector-resource`,children:`Delete Connector Resource`}),`, then add it again.`]})]}),`\n`,_jsxs(_components.p,{children:[`Take `,_jsx(_components.code,{children:`resource_id`}),` and `,_jsx(_components.code,{children:`resource_type`}),` from `,_jsx(_components.a,{href:`/api-reference/v2/endpoint/discover-connector-resources`,children:`Discover Resources`}),`, and always send `,_jsx(_components.code,{children:`display_name`}),`, since it is what the dashboard shows for the resource.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400`}),`: a field is invalid or not accepted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`404`}),`: no connector with this id in your organization.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409`}),`: the connector already has a resource with this `,_jsx(_components.code,{children:`resource_id`}),`. Nothing was changed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422`}),`: on some connectors, HydraDB tests access to the resource first, and the provider refused it. The message says why.`]}),`\n`]}),`\n`,_jsx(`div`,{className:`api-before-related-resources`}),`\n`,_jsx(Heading,{level:`2`,id:`related-resources`,children:`Related resources`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/update-connector-resource`,children:`Update Connector Resource`}),`: change an existing resource`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/configure-connector`,children:`Configure Connector`}),`: add several resources and start a sync`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/v2/endpoint/connector-resources`,children:`List Connector Resources`}),`: see what is configured`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Add Connector Resource","description":"Add one new resource to a connector.","openapi":"api-reference/v2/openapi.json POST /connectors/{id}/resources","href":"/api-reference/v2/endpoint/add-connector-resource"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Related resources","slug":"related-resources","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Python SDK","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">client.connectors.create_resource(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"\u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">{connector_id}\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> resource_id\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"C0123456789\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> resource_type\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"channel\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> display_name\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"general\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> filters\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">={\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"lookback_days\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">30\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"TypeScript SDK","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"typescript\">\u003ccode language=\"typescript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">connectors\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">createResource\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> id:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"{connector_id}\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> resourceId:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"C0123456789\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> resourceType:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"channel\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> displayName:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"general\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> filters:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">lookback_days:\u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\"> 30\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> 'https://api.hydradb.com/connectors/{id}/resources'\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">$HYDRADB_API_KEY\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"API-Version: 2\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"resource_id\": \"C0123456789\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"resource_type\": \"channel\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"display_name\": \"general\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"filters\": { \"lookback_days\": 30 }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"connector_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"{connector_id}\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"resource_id\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"C0123456789\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"resource_type\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"channel\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"display_name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"general\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"active\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"provider_cursor\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"database_override\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"collection_override\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"tenant_id_override\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"sub_tenant_id_override\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"provider_metadata\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"filters\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"lookback_days\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">30\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/cortex-e852fafe/e7a491fa57f47ac4/reo.js","/_mintlify/custom/cortex-e852fafe/6addee7178460057/footer.js"],"openApiReferenceData":{"operation":{"description":"Add one new resource to a connector.","parameters":["3c039815-8dc2-43d2-a62f-9486cf8afb88"],"requestBody":"97832003-0075-4914-806f-de3ba480c4c1","responses":{"201":"0d73a601-6c3d-4662-b0b9-a952ec9741e6","400":"b8de795c-ead8-4870-986b-76f98f58bddb","404":"9a0886ef-76e3-4c0e-8b55-f1d50c408ee4","409":"7c58709f-a6ee-47df-abcd-82e61e329a30","422":"c6f71d51-3d96-4550-b87a-127d90bbaef3","500":"dc42e17c-8d47-4cb4-817c-0b519e782880"},"security":["0daa33c1-1af5-4f03-8c02-0a15be96e2e5"],"summary":"Create a connector resource","tags":["connectors"],"x-fern-sdk-group-name":"connectors","x-fern-sdk-method-name":"create_resource","method":"post","type":"path","servers":["e582ccd8-d5b8-418b-9825-737cb4a46e19"],"path":"/connectors/{id}/resources","baseUrlOptions":["https://api.hydradb.com"],"title":"Create a connector resource","codeSamples":[],"requestExampleLanguages":["python","javascript","bash"],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"client.connectors.create_resource("}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"{connector_id}"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" resource_id"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"C0123456789\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" resource_type"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"channel\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" display_name"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"general\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" filters"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"={"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"lookback_days\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"30"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"},"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n"]}}}},"filename":"Python SDK"},{"dropdown":false,"language":"typescript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"typescript","children":{"type":"code","key":null,"ref":null,"props":{"language":"typescript","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#C586C0","--shiki-dark":"#C586C0"},"children":"await"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"connectors"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#DCDCAA","--shiki-dark":"#DCDCAA"},"children":"createResource"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" id:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"{connector_id}\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" resourceId:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"C0123456789\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" resourceType:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"channel\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" displayName:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"general\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" filters:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" { "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"lookback_days:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":" 30"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" },"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n"]}}}},"filename":"TypeScript SDK"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#DCDCAA","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" 'https://api.hydradb.com/connectors/{id}/resources'"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":"$HYDRADB_API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"API-Version: 2\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#D7BA7D","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"resource_id\": \"C0123456789\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"resource_type\": \"channel\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"display_name\": \"general\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" \"filters\": { \"lookback_days\": 30 }"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes dark-plus dark-plus","style":{"backgroundColor":"#0B0C0E","--shiki-dark-bg":"#0B0C0E","color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"16","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"connector_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"{connector_id}\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"resource_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"C0123456789\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"resource_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"channel\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"display_name\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"general\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"status\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"active\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"provider_cursor\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"database_override\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"collection_override\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"tenant_id_override\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"sub_tenant_id_override\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CE9178","--shiki-dark":"#CE9178"},"children":"\"\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"provider_metadata\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#569CD6","--shiki-dark":"#569CD6"},"children":"null"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"filters\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#9CDCFE","--shiki-dark":"#9CDCFE"},"children":" \"lookback_days\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#B5CEA8","--shiki-dark":"#B5CEA8"},"children":"30"}}]}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":" }"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#D4D4D4","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"201"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{"3c039815-8dc2-43d2-a62f-9486cf8afb88":{"description":"Connector ID","in":"path","name":"id","required":true,"schema":{"example":"HydraDoc1234","type":"string","isRequired":true,"description":"Connector ID","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"properties":{"resource_id":{"description":"Resource identifier from the Discover endpoint.","example":"C0123456789","type":"string","isRequired":true,"uniqueKey":"resource_id","typeLabel":"string"},"acl":{"description":"Restricts every object synced from this resource to the listed principals (emails or prefixed principals). Omitted means unrestricted. See Access Control.","items":{"type":"string","uniqueKey":"acl.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"acl","typeLabel":"string[]"},"additional_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"additional_metadata.additionalProperties","typeLabel":"any"},"description":"Key-value pairs merged into the additional metadata of every synced object. Up to 1 KiB of compact JSON, checked when synced objects are ingested.","example":{"author":"ada","doc_version":3},"type":"object","uniqueKey":"additional_metadata","typeLabel":"object"},"collection_override":{"description":"Routes objects synced from this resource into a specific collection. Empty means the connector's collection.","type":"string","uniqueKey":"collection_override","typeLabel":"string"},"custom_instructions":{"description":"Ingestion and indexing instructions for this resource, replacing the connector's `custom_instructions`; empty inherits it. Up to 4000 characters.","type":"string","uniqueKey":"custom_instructions","typeLabel":"string"},"database_override":{"description":"Routes objects synced from this resource into a different database. Empty means the connector's database.","type":"string","uniqueKey":"database_override","typeLabel":"string"},"display_name":{"description":"Human-readable name for this resource.","example":"general","type":"string","uniqueKey":"display_name","typeLabel":"string"},"filters":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"filters.additionalProperties","typeLabel":"any"},"description":"Provider-specific filters applied during sync (e.g. `{\"lookback_days\": 30}`).","example":{"channel":"general"},"type":"object","uniqueKey":"filters","typeLabel":"object"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"description":"Key-value pairs merged into the metadata of every synced object. Up to 16 KiB of compact JSON, checked when synced objects are ingested.","example":{"department":"finance","priority":7},"type":"object","uniqueKey":"metadata","typeLabel":"object"},"provider_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider_metadata.additionalProperties","typeLabel":"any"},"description":"Additional provider-supplied metadata for this resource.","example":{"workspace_id":"T12345ACME"},"type":"object","uniqueKey":"provider_metadata","typeLabel":"object"},"resource_type":{"description":"Provider resource type, such as `channel`, `repository`, or `linear_team`.","example":"channel","type":"string","uniqueKey":"resource_type","typeLabel":"string"},"sub_tenant_id_override":{"deprecated":true,"description":"Deprecated: use `collection_override`.","type":"string","x-deprecated":"true","uniqueKey":"sub_tenant_id_override","typeLabel":"string"},"tenant_id_override":{"deprecated":true,"description":"Deprecated: use `database_override`.","type":"string","x-deprecated":"true","uniqueKey":"tenant_id_override","typeLabel":"string"}},"required":["resource_id"],"title":"HandlerResourceCreateReq","type":"object","uniqueKey":"","typeLabel":"HandlerResourceCreateReq · object"},"examples":{"Example":{"title":"Example","value":{"resource_id":"C0123456789","acl":["\u003cstring>"],"additional_metadata":{"author":"ada","doc_version":3},"collection_override":"\u003cstring>","custom_instructions":"\u003cstring>","database_override":"\u003cstring>","display_name":"general","filters":{"channel":"general"},"metadata":{"department":"finance","priority":7},"provider_metadata":{"workspace_id":"T12345ACME"},"resource_type":"channel","sub_tenant_id_override":"\u003cstring>","tenant_id_override":"\u003cstring>"}}},"exampleType":"generated"}},"description":"Resource configuration","required":true,"exampleType":"generated"},"responses":{"0d73a601-6c3d-4662-b0b9-a952ec9741e6":{"content":{"application/json":{"schema":{"properties":{"acl":{"description":"Principals (emails or prefixed principals) allowed to read objects synced from this resource. Absent means unrestricted; provider permissions take precedence where supported.","items":{"type":"string","uniqueKey":"acl.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"acl","typeLabel":"string[]"},"acl_warning":{"description":"Why this resource's permissions could not be read. Without an access rule of yours, its objects are readable by everyone meanwhile; with one, your rule applies. Clears on the next successful read.","type":"string","uniqueKey":"acl_warning","typeLabel":"string"},"acl_warning_at":{"description":"When `acl_warning` last changed (RFC 3339). An unchanged warning keeps its original time.","type":"string","uniqueKey":"acl_warning_at","typeLabel":"string"},"additional_metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"additional_metadata.additionalProperties","typeLabel":"any"},"description":"Key-value pairs merged into the additional metadata (`additional_metadata`) of every object synced from this resource. Provider-generated fields win on conflict.","example":{"author":"ada","doc_version":3},"type":"object","uniqueKey":"additional_metadata","typeLabel":"object"},"backfill_error":{"description":"Most recent failure fetching historical records. Cleared when progress resumes.","type":"string","uniqueKey":"backfill_error","typeLabel":"string"},"backfill_error_at":{"description":"When the historical fetch last failed, in RFC3339 format.","type":"string","uniqueKey":"backfill_error_at","typeLabel":"string"},"backfill_oldest":{"description":"Oldest point (RFC 3339) the background fetch of older history has reached. Empty when that fetch is finished or not needed.","example":"2026-06-01T00:00:00Z","type":"string","uniqueKey":"backfill_oldest","typeLabel":"string"},"collection_override":{"description":"Routes this resource's synced objects into a specific collection, overriding the connector's. Formerly `sub_tenant_id_override`.","type":"string","uniqueKey":"collection_override","typeLabel":"string"},"connector_id":{"description":"Connector this resource belongs to.","example":"conn_abc123","type":"string","uniqueKey":"connector_id","typeLabel":"string"},"custom_instructions":{"description":"Ingestion and indexing instructions for this resource, replacing the connector's `custom_instructions`; empty inherits it. Up to 4000 characters, applied from the next sync.","type":"string","uniqueKey":"custom_instructions","typeLabel":"string"},"database_override":{"description":"Database this resource's synced objects are routed to. Empty means the connector's own database.","type":"string","uniqueKey":"database_override","typeLabel":"string"},"display_name":{"description":"Human-readable name for this resource.","example":"general","type":"string","uniqueKey":"display_name","typeLabel":"string"},"filters":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"filters.additionalProperties","typeLabel":"any"},"description":"Provider-specific filters applied during sync (e.g. `{\"lookback_days\": 30}`).","example":{"channel":"general"},"type":"object","uniqueKey":"filters","typeLabel":"object"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"description":"Key-value pairs merged into the metadata (`metadata`) of every object synced from this resource. The system fields `connector_id` and `provider` always win on conflict.","example":{"department":"finance","priority":7},"type":"object","uniqueKey":"metadata","typeLabel":"object"},"page_acl_warning":{"description":"Set when page-level restrictions in this resource (for example Confluence pages) could not be resolved, so those pages are readable by everyone. Clears after a clean full sync.","type":"string","uniqueKey":"page_acl_warning","typeLabel":"string"},"page_acl_warning_at":{"description":"When `page_acl_warning` last changed (RFC 3339).","type":"string","uniqueKey":"page_acl_warning_at","typeLabel":"string"},"provider_cursor":{"description":"Bookmark of the last synced position. Non-empty value confirms the first sync has run.","example":"1699999999.000100","type":"string","uniqueKey":"provider_cursor","typeLabel":"string"},"provider_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"description":"Additional provider-supplied metadata for this resource.","example":null,"type":"object","uniqueKey":"provider_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"description":"Additional provider-supplied metadata for this resource.","example":null,"type":"null","uniqueKey":"provider_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider_metadata","typeLabel":"object | null"},"resource_id":{"description":"Resource identifier from the Discover endpoint.","example":"C0123456789","type":"string","uniqueKey":"resource_id","typeLabel":"string"},"resource_type":{"description":"Provider resource type, such as `channel`, `repository`, or `linear_team`.","example":"channel","type":"string","uniqueKey":"resource_type","typeLabel":"string"},"status":{"description":"Current sync state of this resource (e.g. `active`, `paused`).","example":"active","type":"string","uniqueKey":"status","typeLabel":"string"},"sub_tenant_id_override":{"deprecated":true,"description":"Deprecated: use `collection_override`.","type":"string","x-deprecated":"true","uniqueKey":"sub_tenant_id_override","typeLabel":"string"},"sync_blocked":{"description":"`true` when syncing stopped because the provider keeps refusing this resource, for example a deleted table or an inaccessible channel. `sync_blocked_reason` says why.","example":true,"type":"boolean","uniqueKey":"sync_blocked","typeLabel":"boolean"},"sync_blocked_at":{"description":"When syncing of this resource was stopped (RFC 3339). Present only while `sync_blocked` is `true`.","type":"string","uniqueKey":"sync_blocked_at","typeLabel":"string"},"sync_blocked_reason":{"description":"The provider's explanation for why this resource is blocked. Present only while `sync_blocked` is `true`.","type":"string","uniqueKey":"sync_blocked_reason","typeLabel":"string"},"tenant_id_override":{"deprecated":true,"description":"Deprecated: use `database_override`.","type":"string","x-deprecated":"true","uniqueKey":"tenant_id_override","typeLabel":"string"},"unverified":{"description":"Present when the resource was saved without being checked, because the provider was rate limiting, slow, or unreachable. Its first sync shows whether it can be read.","items":{"type":"string","uniqueKey":"unverified.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"unverified","typeLabel":"string[]"},"warnings":{"description":"Present when the resource was saved but returned no records when checked. It stays configured and will index nothing until it has data.","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueItems":false,"uniqueKey":"warnings","typeLabel":"string[]"}},"title":"HandlerResourceCreateResponse","type":"object","uniqueKey":"","typeLabel":"HandlerResourceCreateResponse · object"},"examples":{"Example":{"title":"Example","value":{"acl":["\u003cstring>"],"acl_warning":"\u003cstring>","acl_warning_at":"\u003cstring>","additional_metadata":{"author":"ada","doc_version":3},"backfill_error":"\u003cstring>","backfill_error_at":"\u003cstring>","backfill_oldest":"2026-06-01T00:00:00Z","collection_override":"\u003cstring>","connector_id":"conn_abc123","custom_instructions":"\u003cstring>","database_override":"\u003cstring>","display_name":"general","filters":{"channel":"general"},"metadata":{"department":"finance","priority":7},"page_acl_warning":"\u003cstring>","page_acl_warning_at":"\u003cstring>","provider_cursor":"1699999999.000100","provider_metadata":null,"resource_id":"C0123456789","resource_type":"channel","status":"active","sub_tenant_id_override":"\u003cstring>","sync_blocked":true,"sync_blocked_at":"\u003cstring>","sync_blocked_reason":"\u003cstring>","tenant_id_override":"\u003cstring>","unverified":["\u003cstring>"],"warnings":["\u003cstring>"]}}},"exampleType":"generated"}},"description":"Created","exampleType":"generated"},"b8de795c-ead8-4870-986b-76f98f58bddb":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Bad Request","exampleType":"generated"},"9a0886ef-76e3-4c0e-8b55-f1d50c408ee4":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Not Found","exampleType":"generated"},"7c58709f-a6ee-47df-abcd-82e61e329a30":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Conflict","exampleType":"generated"},"c6f71d51-3d96-4550-b87a-127d90bbaef3":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Unprocessable Entity","exampleType":"generated"},"dc42e17c-8d47-4cb4-817c-0b519e782880":{"content":{"application/json":{"schema":{"properties":{"data":{"description":"Always `null` on this error response.","type":"null","uniqueKey":"data","typeLabel":"null"},"detail":{"properties":{"deprecated":{"description":"Whether this response concerns a deprecated field or route.","example":true,"type":"boolean","uniqueKey":"detail.deprecated","typeLabel":"boolean"},"deprecated_field":{"description":"The deprecated field name.","example":"tenant_id","type":"string","uniqueKey":"detail.deprecated_field","typeLabel":"string"},"deprecated_since":{"description":"API version that deprecated the conflicting selector.","example":"2.0.1","type":"string","uniqueKey":"detail.deprecated_since","typeLabel":"string"},"error_code":{"description":"Machine-readable error classification code.","example":"VALIDATION_ERROR","type":"string","uniqueKey":"detail.error_code","typeLabel":"string"},"message":{"description":"Human-readable description of the error.","example":"Request validation failed","type":"string","uniqueKey":"detail.message","typeLabel":"string"},"preferred_field":{"description":"The canonical replacement for the deprecated field.","example":"database","type":"string","uniqueKey":"detail.preferred_field","typeLabel":"string"},"retry_after_seconds":{"description":"Seconds to wait before retrying deletion of context that is still indexing.","example":1,"type":"integer","uniqueKey":"detail.retry_after_seconds","typeLabel":"integer"},"retryable":{"description":"Whether retrying this failed query can succeed. Present for search workflow failures.","example":true,"type":"boolean","uniqueKey":"detail.retryable","typeLabel":"boolean"},"success":{"deprecated":true,"description":"Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.","example":false,"type":"boolean","x-deprecated":"true","uniqueKey":"detail.success","typeLabel":"boolean"}},"title":"HandlerErrorDetail","type":"object","description":"Structured error detail with code, message, and deprecation hints.","example":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"uniqueKey":"detail","typeLabel":"HandlerErrorDetail · object"},"error":{"properties":{"code":{"description":"Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).","example":"DATABASE_NOT_FOUND","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":{"type":"string","uniqueKey":"error.details.additionalProperties","typeLabel":"string"},"description":"Extra facts about the error, as string pairs. Omitted when there are none.","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Human-readable description of the error.","example":"Database not found","type":"string","uniqueKey":"error.message","typeLabel":"string"},"param":{"description":"The request field that caused the error. Omitted when no single field is at fault.","type":"string","uniqueKey":"error.param","typeLabel":"string"}},"title":"HandlerApiError","type":"object","description":"Error message, empty string on success.","example":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"uniqueKey":"error","typeLabel":"HandlerApiError · object"},"meta":{"properties":{"api_version":{"description":"Version of the API that served the request, for example `2.0.1`.","type":"string","uniqueKey":"meta.api_version","typeLabel":"string"},"latency_ms":{"description":"Server-side processing time in milliseconds.","example":12.3,"type":"number","uniqueKey":"meta.latency_ms","typeLabel":"number"},"request_id":{"description":"Unique identifier for this request, useful for support and tracing.","example":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d","type":"string","uniqueKey":"meta.request_id","typeLabel":"string"}},"title":"HandlerErrorMeta","type":"object","example":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"uniqueKey":"meta","typeLabel":"HandlerErrorMeta · object"},"success":{"description":"Whether the request succeeded.","example":false,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"title":"HandlerErrorResponse","type":"object","uniqueKey":"","typeLabel":"HandlerErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":null,"detail":{"deprecated":true,"deprecated_field":"tenant_id","deprecated_since":"2.0.1","error_code":"VALIDATION_ERROR","message":"Request validation failed","preferred_field":"database","retry_after_seconds":1,"retryable":true},"error":{"code":"DATABASE_NOT_FOUND","message":"Database not found"},"meta":{"latency_ms":12.3,"request_id":"9d13aef4-02f4-4e73-8c62-4c2601d04f9d"},"success":false}}},"exampleType":"generated"}},"description":"Internal Server Error","exampleType":"generated"}},"security":{"0daa33c1-1af5-4f03-8c02-0a15be96e2e5":{"BearerAuth":{"bearerFormat":"API key","description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"e582ccd8-d5b8-418b-9825-737cb4a46e19":{"description":"Production server","url":"https://api.hydradb.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"API key","description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","scheme":"bearer","type":"http","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as Authorization: Bearer \u003cyour_api_key>.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/v2/openapi.json"},"subdomain":"cortex-e852fafe","siteName":"HydraDB","title":"Add Connector Resource - HydraDB","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/v2/endpoint/add-connector-resource","matchLevel":0},"v1":{"href":"/get-started/introduction","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T17:11:50.540Z","originalFileLocation":"api-reference/v2/endpoint/add-connector-resource.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add one new resource to a connector.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HydraDB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add Connector Resource - HydraDB\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add one new resource to a connector.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HydraDB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hydradb.com/api-reference/v2/endpoint/add-connector-resource\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-e852fafe.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Add+Connector+Resource\u0026amp;description=Add+one+new+resource+to+a+connector.\u0026amp;theme=9098e130351f6ce0100471f1\u0026amp;signature=b0c8564a0e139cab9d862ed6356bebcafd9439fc168ac7bd5e847baba1d53f68\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add Connector Resource - HydraDB\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add one new resource to a connector.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-e852fafe.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Add+Connector+Resource\u0026amp;description=Add+one+new+resource+to+a+connector.\u0026amp;theme=9098e130351f6ce0100471f1\u0026amp;signature=b0c8564a0e139cab9d862ed6356bebcafd9439fc168ac7bd5e847baba1d53f68\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cortex-e852fafe/DBxDrAuXzUjAgIlJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HydraDB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF571A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hydradb.com/api-reference/v2/endpoint/add-connector-resource\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/endpoint/add-connector-resource.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HydraDB\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"HydraDB\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/endpoint/add-connector-resource.md","siteName":"HydraDB","nav":{"global":null,"versions":[{"version":"v2","tabs":[{"tab":"Guides","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/get-started/v2/introduction"},{"title":"Quickstart","href":"/get-started/v2/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"Databases and Collections","href":"/essentials/v2/databases-and-collections"},{"title":"Metadata Filters","href":"/essentials/v2/metadata"},{"title":"Context","href":"/essentials/v2/context"},{"title":"Connectors","href":"/essentials/v2/connectors"},{"title":"Query","href":"/essentials/v2/query"},{"title":"Bring Your Own Graph (BYOG)","href":"/essentials/v2/bring-your-own-graph"}]},{"group":"Tools and Integrations","public":true,"pages":[{"title":"CLI","href":"/plugins/cli"},{"title":"MCP","href":"/plugins/mcp"},{"title":"Plugins","href":"/plugins/ecosystem"}]},{"group":"For Agents","public":true,"pages":[{"title":"HydraDB Agent Integration Guide","href":"/AGENTS"}]}]},{"tab":"API Reference","groups":[{"group":"Overview","public":true,"pages":[{"title":"API Reference","href":"/api-reference/v2"},{"title":"SDKs: Python and TypeScript","href":"/api-reference/v2/sdks"},{"title":"Error Responses","href":"/api-reference/v2/error-responses"}]},{"group":"Databases","public":true,"pages":[{"title":"Databases: Overview","href":"/api-reference/v2/endpoint/databases-overview"},{"title":"Create Database","openapi":"api-reference/v2/openapi.json POST /databases","href":"/api-reference/v2/endpoint/create-database"},{"title":"Database Status","openapi":"api-reference/v2/openapi.json GET /databases/status","href":"/api-reference/v2/endpoint/database-status"},{"title":"List Databases","openapi":"api-reference/v2/openapi.json GET /databases","href":"/api-reference/v2/endpoint/list-databases"},{"title":"Database Stats","openapi":"api-reference/v2/openapi.json GET /databases/stats","href":"/api-reference/v2/endpoint/database-stats"},{"title":"Get Metadata Schema","openapi":"api-reference/v2/openapi.json GET /databases/{database}/metadata-schema","href":"/api-reference/v2/endpoint/get-metadata-schema"},{"title":"Update Metadata Schema","openapi":"api-reference/v2/openapi.json PATCH /databases/{database}/metadata-schema","href":"/api-reference/v2/endpoint/update-metadata-schema"},{"title":"List Collections","openapi":"api-reference/v2/openapi.json GET /databases/collections","href":"/api-reference/v2/endpoint/list-collections"},{"title":"Delete Collection","openapi":"api-reference/v2/openapi.json DELETE /databases/collections","href":"/api-reference/v2/endpoint/delete-collection"},{"title":"Delete Database","openapi":"api-reference/v2/openapi.json DELETE /databases","href":"/api-reference/v2/endpoint/delete-database"}]},{"group":"Context","public":true,"pages":[{"title":"Context: Overview","href":"/api-reference/v2/endpoint/context-overview"},{"title":"Ingest Context","openapi":"api-reference/v2/openapi.json POST /context/ingest","href":"/api-reference/v2/endpoint/ingest-context"},{"title":"Ingestion Status","openapi":"api-reference/v2/openapi.json GET /context/status","href":"/api-reference/v2/endpoint/source-status"},{"title":"List Context","openapi":"api-reference/v2/openapi.json POST /context/list","href":"/api-reference/v2/endpoint/list-context"},{"title":"Inspect Context","openapi":"api-reference/v2/openapi.json GET /context/inspect","href":"/api-reference/v2/endpoint/fetch-content"},{"title":"Update Source Metadata","openapi":"api-reference/v2/openapi.json PATCH /context/{id}/metadata","href":"/api-reference/v2/endpoint/update-source-metadata"},{"title":"Inspecting Context Relations","openapi":"api-reference/v2/openapi.json GET /context/relations","href":"/api-reference/v2/endpoint/source-relations"},{"title":"Connected Subgraph","openapi":"api-reference/v2/openapi.json GET /context/{id}/subgraph","href":"/api-reference/v2/endpoint/subgraph"},{"title":"Delete Context","openapi":"api-reference/v2/openapi.json DELETE /context","href":"/api-reference/v2/endpoint/delete-source"}]},{"group":"Query","public":true,"pages":[{"title":"Query: Overview","href":"/api-reference/v2/endpoint/query-overview"},{"title":"Query","openapi":"api-reference/v2/openapi.json POST /query","href":"/api-reference/v2/endpoint/query"},{"title":"Submit Feedback","openapi":"api-reference/v2/openapi.json POST /feedback","href":"/api-reference/v2/endpoint/submit-feedback"}]},{"group":"Connectors","public":true,"pages":[{"title":"Connectors: Overview","href":"/api-reference/v2/endpoint/connectors-overview"},{"title":"List Connector Providers","openapi":"api-reference/v2/openapi.json GET /connectors/providers","href":"/api-reference/v2/endpoint/list-connector-providers"},{"title":"Create Connector","openapi":"api-reference/v2/openapi.json POST /connectors","href":"/api-reference/v2/endpoint/create-connector"},{"title":"Discover Resources","openapi":"api-reference/v2/openapi.json GET /connectors/{id}/discover","href":"/api-reference/v2/endpoint/discover-connector-resources"},{"title":"Configure Connector","openapi":"api-reference/v2/openapi.json POST /connectors/{id}/configure","href":"/api-reference/v2/endpoint/configure-connector"},{"title":"Get Connector Status","openapi":"api-reference/v2/openapi.json GET /connectors/{id}/status","href":"/api-reference/v2/endpoint/get-connector-status"},{"title":"List Connectors","openapi":"api-reference/v2/openapi.json GET /connectors","href":"/api-reference/v2/endpoint/list-connectors"},{"title":"Update Connector","openapi":"api-reference/v2/openapi.json PATCH /connectors/{id}","href":"/api-reference/v2/endpoint/update-connector"},{"title":"Update Connector Resource","openapi":"api-reference/v2/openapi.json PATCH /connectors/{id}/resources/{resource_id}","href":"/api-reference/v2/endpoint/update-connector-resource"}]},{"group":"Webhooks","public":true,"pages":[{"title":"Webhooks: Overview","href":"/api-reference/v2/endpoint/webhooks-overview"},{"title":"Register Webhook","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing","href":"/api-reference/v2/endpoint/register-webhook"},{"title":"Get Webhook","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing","href":"/api-reference/v2/endpoint/get-webhook"},{"title":"Delete Webhook","openapi":"api-reference/v2/openapi.json DELETE /webhooks/indexing","href":"/api-reference/v2/endpoint/delete-webhook"},{"title":"Send Test Delivery","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/test","href":"/api-reference/v2/endpoint/test-webhook"},{"title":"List Deliveries","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing/deliveries","href":"/api-reference/v2/endpoint/list-webhook-deliveries"},{"title":"Get Delivery","openapi":"api-reference/v2/openapi.json GET /webhooks/indexing/deliveries/{delivery_id}","href":"/api-reference/v2/endpoint/get-webhook-delivery"},{"title":"Retry Delivery","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/deliveries/{delivery_id}/retry","href":"/api-reference/v2/endpoint/retry-webhook-delivery"},{"title":"Set Signing Secret","openapi":"api-reference/v2/openapi.json POST /webhooks/indexing/signing-secret","href":"/api-reference/v2/endpoint/set-webhook-signing-secret"},{"title":"Disable Signing","openapi":"api-reference/v2/openapi.json DELETE /webhooks/indexing/signing-secret","href":"/api-reference/v2/endpoint/disable-webhook-signing"}]}]},{"tab":"Cookbooks","groups":[{"group":"Cookbooks","public":true,"pages":[{"title":"Cookbooks","sidebarTitle":"Overview","href":"/cookbooks/v2"},{"title":"Build your own Glean","sidebarTitle":"Company Brain","href":"/cookbooks/v2/glean"},{"title":"Build your own Cursor","sidebarTitle":"Software Factory","href":"/cookbooks/v2/cursor"},{"title":"Build your own AI Chief of Staff","sidebarTitle":"Chief of Staff","href":"/cookbooks/v2/chief-of-staff"},{"title":"Build your own personal assistant","sidebarTitle":"Personal assistant","href":"/cookbooks/v2/personal-assistant"},{"title":"Build your own competitive intelligence agent","sidebarTitle":"Revenue engine","href":"/cookbooks/v2/competitive-intelligence"},{"title":"Build your own customer support agent","sidebarTitle":"Customer support","href":"/cookbooks/v2/support-agent"}]}]}]},{"version":"v1","pages":[{"title":"v1","href":"/get-started/introduction"}]}]},"basePath":"","title":"Add Connector Resource - HydraDB","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}