Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.
PUT
/
dc
/
sources
/
{source_pid}
/
status
Change a source status
curl --request PUT \ --url https://ds.cominty.com/dc/sources/{source_pid}/status \ --header 'x-cominty-token: <api-key>'
A Cominty Platform API secret. A key created now starts with sk-cmt-. Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix. A key created before the prefix existed has no sk-cmt- and still works.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cominty Docs","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cominty/OlaCp4Mnl7PsozKo/logo/cominty-docs-light.svg?fit=max\u0026auto=format\u0026n=OlaCp4Mnl7PsozKo\u0026q=85\u0026s=a1010cc409832a55742c94c04b8727e7","dark":"https://mintcdn.com/cominty/OlaCp4Mnl7PsozKo/logo/cominty-docs-dark.svg?fit=max\u0026auto=format\u0026n=OlaCp4Mnl7PsozKo\u0026q=85\u0026s=2bc1248063a231b42c3ccc55a399540b"},"favicon":"https://mintcdn.com/cominty/OlaCp4Mnl7PsozKo/logo/cominty-logo.png?fit=max\u0026auto=format\u0026n=OlaCp4Mnl7PsozKo\u0026q=85\u0026s=18001b6b38646c95a6046a581f04c068","appearance":{"default":"system"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:hello@cominty.ai","label":"Support"}],"primary":{"type":"button","label":"Go to Cominty","href":"https://platform.cominty.ai/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/cominty"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cominty","hasAudioNarration":false,"actualSubdomain":"cominty","customDomains":["docs.cominty.ai"],"gitSource":{"type":"github","owner":"cominty","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af1b19db3969014b8f223f3","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":86},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Sources","count":10},{"language":"default","tag":"Agents","count":7},{"language":"default","tag":"JavaScript SDK","count":6},{"language":"default","tag":"MCP","count":6},{"language":"default","tag":"Python SDK","count":6},{"language":"default","tag":"Threads","count":6},{"language":"default","tag":"Memory","count":6},{"language":"default","tag":"Skills","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/document_stores/change-a-source-status","slug":"/api-reference/document_stores/change-a-source-status","pageMetadata":{"title":"Change a source status","description":"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.","deprecated":null,"version":null,"openapi":"/openapi.json put /dc/sources/{source_pid}/status","href":"/api-reference/document_stores/change-a-source-status","autogeneratedByOpenApi":true},"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: \"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Change a source status","description":"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.","deprecated":null,"version":null,"openapi":"/openapi.json put /dc/sources/{source_pid}/status","href":"/api-reference/document_stores/change-a-source-status","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["document_stores","sources"],"summary":"Change a source status","operationId":"manage_source_dc_sources__source_pid__status_put","parameters":["f18ac39f-a391-483f-91f9-9ce3e98edb52","dc29ced1-079f-4dca-a7c7-f6849cd6e36e"],"responses":{"200":"c3a4c5ab-cec0-4b9f-84a6-cab4b8b754c0","422":"9551d229-c19f-4b2f-a22d-3e7549f9913f"},"description":"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.","method":"put","type":"path","servers":["aebc19f2-9362-45d2-8c50-7fd026035a92"],"security":["7f0ecfec-9485-424b-9c06-6b217aa7ccd1"],"path":"/dc/sources/{source_pid}/status","baseUrlOptions":["https://ds.cominty.com"],"title":"Change a source status","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f18ac39f-a391-483f-91f9-9ce3e98edb52":{"name":"source_pid","in":"path","required":true,"schema":{"type":"string","title":"Source Pid","isRequired":true,"description":"Public id of the source (the pid field, a string).","uniqueKey":"","typeLabel":"string"},"description":"Public id of the source (the pid field, a string)."},"dc29ced1-079f-4dca-a7c7-f6849cd6e36e":{"name":"operation","in":"query","required":true,"schema":{"enum":["start","pause","archive","sync"],"type":"string","title":"Operation","isRequired":true,"description":"start, pause, sync or archive. Each one is valid from some statuses only.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"start, pause, sync or archive. Each one is valid from some statuses only."}},"responses":{"c3a4c5ab-cec0-4b9f-84a6-cab4b8b754c0":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"id":{"type":"integer","title":"Id","description":"Numeric id. Use it in source_ids on a capability or a scope.","isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"pid":{"type":"string","title":"Pid","description":"Public id. Use it in every path.","isRequired":true,"uniqueKey":"pid","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"scope":{"type":"string","title":"Scope","isRequired":true,"uniqueKey":"scope","typeLabel":"string"},"created_by":{"type":"string","title":"Created By","isRequired":true,"uniqueKey":"created_by","typeLabel":"string"},"store":{"type":"string","title":"Store","description":"draganddrop, googledrive or sharepoint. A key creates only draganddrop.","isRequired":true,"uniqueKey":"store","typeLabel":"string"},"status":{"type":"string","title":"Status","description":"pending, syncing, synced, error, out_of_sync, cancelling, pausing, paused, archived, disconnected, inoperative_connection, expired_connection, invalid_configuration or daily_quota_reached.","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"size":{"type":"integer","title":"Size","isRequired":true,"uniqueKey":"size","typeLabel":"integer"},"embedded_size":{"type":"integer","title":"Embedded Size","isRequired":true,"uniqueKey":"embedded_size","typeLabel":"integer"},"config":{"additionalProperties":true,"type":"object","title":"Config","isRequired":true,"uniqueKey":"config","typeLabel":"Config · object"},"documents_synced":{"type":"integer","title":"Documents Synced","isRequired":true,"uniqueKey":"documents_synced","typeLabel":"integer"},"documents_failed":{"type":"integer","title":"Documents Failed","isRequired":true,"uniqueKey":"documents_failed","typeLabel":"integer"},"oversized_documents":{"type":"integer","title":"Oversized Documents","isRequired":true,"uniqueKey":"oversized_documents","typeLabel":"integer"},"documents_embedded":{"type":"integer","title":"Documents Embedded","isRequired":true,"uniqueKey":"documents_embedded","typeLabel":"integer"},"last_synced_at":{"oneOf":[{"type":"string","title":"Last Synced At","format":"date-time","isRequired":true,"uniqueKey":"last_synced_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Last Synced At","isRequired":true,"uniqueKey":"last_synced_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_synced_at","typeLabel":"string\u003cdate-time> | null"},"archived_at":{"oneOf":[{"type":"string","title":"Archived At","format":"date-time","isRequired":true,"uniqueKey":"archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Archived At","isRequired":true,"uniqueKey":"archived_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"archived_at","typeLabel":"string\u003cdate-time> | null"},"connection":{"oneOf":[{"type":"object","title":"ConnectionOut","required":["id","name","status","created_by","expires_at","checked_at","inoperative"],"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"connection.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"connection.oneOf.0.name","typeLabel":"string"},"status":{"type":"string","title":"Status","isRequired":true,"uniqueKey":"connection.oneOf.0.status","typeLabel":"string"},"created_by":{"type":"string","title":"Created By","isRequired":true,"uniqueKey":"connection.oneOf.0.created_by","typeLabel":"string"},"expires_at":{"oneOf":[{"type":"string","title":"Expires At","format":"date-time","isRequired":true,"uniqueKey":"connection.oneOf.0.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Expires At","isRequired":true,"uniqueKey":"connection.oneOf.0.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"connection.oneOf.0.expires_at","typeLabel":"string\u003cdate-time> | null"},"checked_at":{"oneOf":[{"type":"string","title":"Checked At","format":"date-time","isRequired":true,"uniqueKey":"connection.oneOf.0.checked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Checked At","isRequired":true,"uniqueKey":"connection.oneOf.0.checked_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"connection.oneOf.0.checked_at","typeLabel":"string\u003cdate-time> | null"},"inoperative":{"type":"boolean","title":"Inoperative","isRequired":true,"uniqueKey":"connection.oneOf.0.inoperative","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"connection.oneOf.0","typeLabel":"ConnectionOut · object"},{"type":"null","isRequired":true,"uniqueKey":"connection.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"connection","typeLabel":"ConnectionOut · object | null"}},"additionalProperties":false,"type":"object","required":["created_at","id","pid","name","scope","created_by","store","status","size","embedded_size","config","documents_synced","documents_failed","oversized_documents","documents_embedded","last_synced_at","archived_at","connection"],"title":"SourceOut","uniqueKey":"","typeLabel":"SourceOut · object"},"examples":{"Example":{"title":"Example","value":{"created_at":"2023-11-07T05:31:56Z","id":123,"pid":"\u003cstring>","name":"\u003cstring>","scope":"\u003cstring>","created_by":"\u003cstring>","store":"\u003cstring>","status":"\u003cstring>","size":123,"embedded_size":123,"config":{},"documents_synced":123,"documents_failed":123,"oversized_documents":123,"documents_embedded":123,"last_synced_at":"2023-11-07T05:31:56Z","archived_at":"2023-11-07T05:31:56Z","connection":{"id":"\u003cstring>","name":"\u003cstring>","status":"\u003cstring>","created_by":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z","checked_at":"2023-11-07T05:31:56Z","inoperative":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"9551d229-c19f-4b2f-a22d-3e7549f9913f":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7f0ecfec-9485-424b-9c06-6b217aa7ccd1":{"comintyToken":{"type":"apiKey","in":"header","name":"x-cominty-token","description":"A Cominty Platform API secret. A key created now starts with sk-cmt-. Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix. A key created before the prefix existed has no sk-cmt- and still works.","scopes":[],"schemeName":"comintyToken"}}},"servers":{"aebc19f2-9362-45d2-8c50-7fd026035a92":{"url":"https://ds.cominty.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-cominty-token","description":"A Cominty Platform API secret. A key created now starts with sk-cmt-. Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix. A key created before the prefix existed has no sk-cmt- and still works.","scopes":[],"schemeName":"comintyToken"},"schema":{"title":"x-cominty-token","type":"string","description":"A Cominty Platform API secret. A key created now starts with sk-cmt-. Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix. A key created before the prefix existed has no sk-cmt- and still works.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"comintyToken","name":"x-cominty-token"}],"title":"comintyToken"}]},"originalFileLocation":"openapi.json"},"subdomain":"cominty","siteName":"Cominty Docs","title":"Change a source status - Cominty Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T16:22:37.469Z","originalFileLocation":"api-reference/document_stores/change-a-source-status.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=\"system\"}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=\"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cominty Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_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/cominty/s9Hy56RqRqNP3Plq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change a source status - Cominty Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cominty Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cominty.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=Change+a+source+status\u0026amp;description=Run+an+operation+on+a+source%3A+start+%28only+from+paused%29%2C+pause+%28cancels+a+running+sync%29%2C+sync+%28from+synced%2C+error%2C+out_of_sync+or+daily_quota_reached%29+and+archiv\u0026amp;theme=191d770500592ba38bec4afe\u0026amp;signature=3c6a0af24307d25241799f5894f2f440e5c70cbec9aadf3c62006f9e909e1554\">\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=\"Change a source status - Cominty Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cominty.mintlify.site/_mintlify/api/og/v2?division=Sources\u0026amp;title=Change+a+source+status\u0026amp;description=Run+an+operation+on+a+source%3A+start+%28only+from+paused%29%2C+pause+%28cancels+a+running+sync%29%2C+sync+%28from+synced%2C+error%2C+out_of_sync+or+daily_quota_reached%29+and+archiv\u0026amp;theme=191d770500592ba38bec4afe\u0026amp;signature=3c6a0af24307d25241799f5894f2f440e5c70cbec9aadf3c62006f9e909e1554\">\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/cominty/s9Hy56RqRqNP3Plq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cominty Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/document_stores/change-a-source-status.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cominty.ai/#organization\",\"name\":\"Cominty Docs\",\"url\":\"https://docs.cominty.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cominty/OlaCp4Mnl7PsozKo/logo/cominty-docs-light.svg?fit=max\u0026auto=format\u0026n=OlaCp4Mnl7PsozKo\u0026q=85\u0026s=a1010cc409832a55742c94c04b8727e7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cominty.ai#website\",\"name\":\"Cominty Docs\",\"url\":\"https://docs.cominty.ai\",\"publisher\":{\"@id\":\"https://docs.cominty.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status#webpage\",\"url\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status\",\"name\":\"Change a source status\",\"description\":\"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\",\"dateModified\":\"2026-11-04T16:22:37.469Z\",\"isPartOf\":{\"@id\":\"https://docs.cominty.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.cominty.ai/api-reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sources\",\"item\":\"https://docs.cominty.ai/api-reference/document_stores/list-sources\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Change a source status\",\"item\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status#apireference\",\"headline\":\"Change a source status\",\"name\":\"Change a source status\",\"description\":\"Run an operation on a source: start (only from paused), pause (cancels a running sync), sync (from synced, error, out_of_sync or daily_quota_reached) and archive (from any status but archived). Archiving removes the indexed documents and the files, and cannot be undone. An operation that does not match the current status returns 400 Operation is not valid.\",\"url\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cominty.ai/api-reference/document_stores/change-a-source-status#webpage\"},\"dateModified\":\"2026-11-04T16:22:37.469Z\",\"publisher\":{\"@id\":\"https://docs.cominty.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cominty.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cominty Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cominty Docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/sdk/overview"}]},{"tab":"JavaScript SDK","pages":[{"title":"JavaScript SDK","href":"/js-sdk/overview"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API reference","href":"/api-reference"},{"group":"Threads","icon":"messages-square","expanded":true,"pages":[{"title":"Start a thread","deprecated":null,"version":null,"openapi":"/openapi.json post /chat","href":"/api-reference/chat/start-a-thread"},{"title":"Send a follow-up message","deprecated":null,"version":null,"openapi":"/openapi.json post /chat/{thread_id}","href":"/api-reference/chat/send-a-follow-up-message"},{"title":"List threads","deprecated":null,"version":null,"openapi":"/openapi.json get /chat","href":"/api-reference/chat/list-threads"},{"title":"Get a thread","deprecated":null,"version":null,"openapi":"/openapi.json get /chat/{thread_id}","href":"/api-reference/chat/get-a-thread"},{"title":"Update a thread","deprecated":null,"version":null,"openapi":"/openapi.json put /chat/{thread_id}","href":"/api-reference/chat/update-a-thread"},{"title":"Archive a thread","deprecated":null,"version":null,"openapi":"/openapi.json delete /chat/{thread_id}","href":"/api-reference/chat/archive-a-thread"}]},{"group":"Messages","icon":"message-square","expanded":true,"pages":[{"title":"Stream message events","deprecated":null,"version":null,"openapi":"/openapi.json get /chat/messages/{message_id}/stream","href":"/api-reference/chat/stream-message-events"},{"title":"Cancel a message","deprecated":null,"version":null,"openapi":"/openapi.json post /chat/messages/{message_id}/cancel","href":"/api-reference/chat/cancel-a-message"},{"title":"Export a message","deprecated":null,"version":null,"openapi":"/openapi.json get /chat/messages/{message_id}/export","href":"/api-reference/chat/export-a-message"}]},{"group":"Files","icon":"paperclip","expanded":true,"pages":[{"title":"Get an upload permission","deprecated":null,"version":null,"openapi":"/openapi.json get /chat/files/upload","href":"/api-reference/chat/get-an-upload-permission"},{"title":"Confirm an upload","deprecated":null,"version":null,"openapi":"/openapi.json post /chat/files","href":"/api-reference/chat/confirm-an-upload"},{"title":"Download a conversation file","deprecated":null,"version":null,"openapi":"/openapi.json get /chat/files/{file_pid}","href":"/api-reference/chat/download-a-conversation-file"}]},{"group":"Memory","icon":"database","expanded":true,"pages":[{"title":"List memory files","deprecated":null,"version":null,"openapi":"/openapi.json get /memory","href":"/api-reference/memory/list-memory-files"},{"title":"List memory namespaces","deprecated":null,"version":null,"openapi":"/openapi.json get /memory/namespaces","href":"/api-reference/memory/list-memory-namespaces"},{"title":"Create a memory file","deprecated":null,"version":null,"openapi":"/openapi.json post /memory","href":"/api-reference/memory/create-a-memory-file"},{"title":"Get a memory file","deprecated":null,"version":null,"openapi":"/openapi.json get /memory/file","href":"/api-reference/memory/get-a-memory-file"},{"title":"Update a memory file","deprecated":null,"version":null,"openapi":"/openapi.json put /memory/file","href":"/api-reference/memory/update-a-memory-file"},{"title":"Delete a memory file","deprecated":null,"version":null,"openapi":"/openapi.json delete /memory/file","href":"/api-reference/memory/delete-a-memory-file"}]},{"group":"MCP","icon":"plug","expanded":true,"pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/openapi.json get /mcp/manifest","href":"/api-reference/mcp/list-mcp-servers"}]},{"group":"Agents","icon":"bot","expanded":true,"pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/openapi.json get /agents","href":"/api-reference/agents/list-agents"},{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json get /agents/models","href":"/api-reference/agents/list-models"},{"title":"Get an agent","deprecated":null,"version":null,"openapi":"/openapi.json get /agents/{agent_pid}","href":"/api-reference/agents/get-an-agent"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/openapi.json post /agents","href":"/api-reference/agents/create-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/openapi.json put /agents/{agent_pid}","href":"/api-reference/agents/update-an-agent"},{"title":"Set the model chain","deprecated":null,"version":null,"openapi":"/openapi.json put /agents/{agent_pid}/models","href":"/api-reference/agents/set-the-model-chain"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/openapi.json delete /agents/{agent_pid}","href":"/api-reference/agents/delete-an-agent"}]},{"group":"Skills","icon":"sparkles","expanded":true,"pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"/openapi.json get /skills","href":"/api-reference/agents/list-skills"},{"title":"Create a skill","deprecated":null,"version":null,"openapi":"/openapi.json post /skills","href":"/api-reference/agents/create-a-skill"},{"title":"Update a skill","deprecated":null,"version":null,"openapi":"/openapi.json put /skills/{skill_pid}","href":"/api-reference/agents/update-a-skill"},{"title":"Upload a skill version","deprecated":null,"version":null,"openapi":"/openapi.json post /skills/{skill_pid}/versions","href":"/api-reference/agents/upload-a-skill-version"},{"title":"Delete a skill","deprecated":null,"version":null,"openapi":"/openapi.json delete /skills/{skill_pid}","href":"/api-reference/agents/delete-a-skill"}]},{"group":"Sources","icon":"folder-search","expanded":true,"pages":[{"title":"List sources","deprecated":null,"version":null,"openapi":"/openapi.json get /dc/sources","href":"/api-reference/document_stores/list-sources"},{"title":"Create a source","deprecated":null,"version":null,"openapi":"/openapi.json post /dc/sources","href":"/api-reference/document_stores/create-a-source"},{"title":"Rename a source","description":"Rename a source. The drive of a drag-and-drop source cannot change.","deprecated":null,"version":null,"openapi":"/openapi.json put /dc/sources/{source_pid}","href":"/api-reference/document_stores/rename-a-source"},{"title":"Change a source status","deprecated":null,"version":null,"openapi":"/openapi.json put /dc/sources/{source_pid}/status","href":"/api-reference/document_stores/change-a-source-status"},{"title":"Create a drive","description":"Create an empty drive: the container that holds the files of a source. The drive belongs to the user who created the key. A user has at most 100 drives, and a drive cannot be deleted. The 101st returns 400 Too many drives.","deprecated":null,"version":null,"openapi":"/openapi.json post /drives","href":"/api-reference/drives/create-a-drive"},{"title":"Get a drive","deprecated":null,"version":null,"openapi":"/openapi.json get /drives/{drive_pid}","href":"/api-reference/drives/get-a-drive"},{"title":"Get a drive upload permission","deprecated":null,"version":null,"openapi":"/openapi.json get /drives/{drive_pid}/upload","href":"/api-reference/drives/get-a-drive-upload-permission"},{"title":"Confirm a drive upload","deprecated":null,"version":null,"openapi":"/openapi.json post /drives/upload","href":"/api-reference/drives/confirm-a-drive-upload"},{"title":"Get a file download URL","deprecated":null,"version":null,"openapi":"/openapi.json get /files/{file_pid}","href":"/api-reference/files/get-a-file-download-url"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/openapi.json delete /files/{file_pid}","href":"/api-reference/files/delete-a-file"}]},{"group":"Documents","icon":"file-text","expanded":true,"pages":[{"title":"Get a document","deprecated":null,"version":null,"openapi":"/openapi.json get /documents","href":"/api-reference/documents/get-a-document"}]}]}]}]},"basePath":"","title":"Change a source status - Cominty Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}