Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
tenantId
string
required
Tenant identifier.
collection
string
required
Collection name under the tenant (for example: users, bots, jobs).
docId
string
required
Document identifier within the collection.
Body
application/json
Arbitrary JSON object representing the provisioning resource.
Response
Replaced (existing document)
Arbitrary JSON object representing the provisioning resource.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Crescendo Documentation","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/crescendo/PrufNUUZARxizNf_/logo/light.png?fit=max\u0026auto=format\u0026n=PrufNUUZARxizNf_\u0026q=85\u0026s=7cca91b7869186ab147bc33d934a91ff","dark":"https://mintcdn.com/crescendo/PrufNUUZARxizNf_/logo/dark.png?fit=max\u0026auto=format\u0026n=PrufNUUZARxizNf_\u0026q=85\u0026s=877bedf729e9c326aa5efe6803d84d45"},"favicon":"https://mintcdn.com/crescendo/BoPbcsdxzFXZyvcw/favicon.png?fit=max\u0026auto=format\u0026n=BoPbcsdxzFXZyvcw\u0026q=85\u0026s=e3a72e53e31529f1d5287a35c98774d4","navbar":{"links":[{"href":"mailto:support@crescendo.ai","label":"Support"}]},"footer":{"socials":{"linkedin":"https://linkedin.com/company/crescendocx"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Customer Stories","icon":"newspaper","href":"https://www.crescendo.ai/case-studies"},{"anchor":"Blog","icon":"newspaper","href":"https://www.crescendo.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"crescendo","hasAudioNarration":false,"actualSubdomain":"crescendo","customDomains":["docs.crescendo.ai"],"gitSource":{"type":"github","owner":"c7oai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afde18f9267861064b40a46","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API reference","count":19},{"language":"default","tag":"Provisioning","count":14},{"language":"default","tag":"API","count":12},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Reporting","count":6},{"language":"default","tag":"AI Assistants","count":6},{"language":"default","tag":"VOC","count":4},{"language":"default","tag":"Assistants","count":2},{"language":"default","tag":"MCP","count":2},{"language":"default","tag":"Getting started","count":2}]},"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":"workos-onboarding","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/provisioning-post-replace","slug":"/api-reference/endpoint/provisioning-post-replace","pageMetadata":{"title":"Create or replace a provisioning document","description":"POST creates a new document or fully replaces an existing document.","openapi":"POST /api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","href":"/api-reference/endpoint/provisioning-post-replace"},"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: \"POST creates a new document or fully replaces an existing document.\"\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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`POST requests `,_jsx(_components.strong,{children:`replace`}),` the document at the target path:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If the document does not exist, the API returns `,_jsx(_components.strong,{children:`201 Created`})]}),`\n`,_jsxs(_components.li,{children:[`If the document exists, the API returns `,_jsx(_components.strong,{children:`200 OK`}),` and the previous document content is replaced`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The API stamps `,_jsx(_components.code,{children:`updated`}),` (epoch millis) and `,_jsx(_components.code,{children:`updatedBy`}),` automatically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-create-a-user`,children:`Example: create a user`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` CRESCENDO_TENANT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant-alpha\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` CRESCENDO_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CRESCENDO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"email\":\"new.user@example.com\",\"role\":\"viewer\"}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.crescendo.ai/api/v1/provisioning/tenants/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CRESCENDO_TENANT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/users/user-123\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-write-a-versioned-resource`,children:`Example: write a versioned resource`}),`\n`,_jsxs(_components.p,{children:[`For versioned resources, you can include `,_jsx(_components.code,{children:`versions.current`}),` in the payload:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CRESCENDO_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"name\":\"Support Bot\",\"versions\":{\"current\":{\"spec\":{\"greeting\":\"hello\"}}}}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.crescendo.ai/api/v1/provisioning/tenants/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$CRESCENDO_TENANT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/bots/bot-002\"`})]}),`\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":{"config":{},"pageMetadata":{"title":"Create or replace a provisioning document","description":"POST creates a new document or fully replaces an existing document.","openapi":"POST /api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","href":"/api-reference/endpoint/provisioning-post-replace"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example: create a user","slug":"example-create-a-user","depth":2,"children":[]},{"title":"Example: write a versioned resource","slug":"example-write-a-versioned-resource","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Provisioning"],"summary":"Create or replace a provisioning document (POST = replace)","description":"POST creates a new document or fully replaces an existing document.","operationId":"postProvisioningDocument","parameters":["e6fc788e-8977-44f2-b81a-decc8b465a17","47b61720-3e5d-4307-8e1f-e6f8cf0f1e60","498d5768-f521-4499-9368-7ca55fc973af"],"requestBody":"f6b398a4-1aa6-47d8-83ec-5bc8e8f7f114","responses":{"200":"c1d0af8c-fdfc-4dae-81e5-a98d17d46c5d","201":"3e391f9a-582d-4b30-a4d2-c31476b42e5d","400":"998a347c-23fd-4e98-a496-1c35b5a44343","401":"95dd5c26-e5a5-479a-b51f-486d76d4c246","403":"7ac77d6d-3b03-41e8-bbf8-38ea9eb71b80"},"method":"post","type":"path","servers":["13eed27f-bed5-4184-9aca-ffaac788cd8e"],"security":["904030fd-bde0-49ff-b96b-4106d81ee3a8","1ae2eeaa-74de-4a8f-bdc0-dd2d23f95ef2"],"path":"/api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","baseUrlOptions":["https://platform.crescendo.ai"],"title":"Create or replace a provisioning document (POST = replace)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e6fc788e-8977-44f2-b81a-decc8b465a17":{"name":"tenantId","in":"path","required":true,"description":"Tenant identifier.","schema":{"type":"string","isRequired":true,"description":"Tenant identifier.","uniqueKey":"","typeLabel":"string"}},"47b61720-3e5d-4307-8e1f-e6f8cf0f1e60":{"name":"collection","in":"path","required":true,"description":"Collection name under the tenant (for example: `users`, `bots`, `jobs`).","schema":{"type":"string","isRequired":true,"description":"Collection name under the tenant (for example: `users`, `bots`, `jobs`).","uniqueKey":"","typeLabel":"string"}},"498d5768-f521-4499-9368-7ca55fc973af":{"name":"docId","in":"path","required":true,"description":"Document identifier within the collection.","schema":{"type":"string","isRequired":true,"description":"Document identifier within the collection.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Arbitrary JSON object representing the provisioning resource.","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c1d0af8c-fdfc-4dae-81e5-a98d17d46c5d":{"description":"Replaced (existing document)","content":{"application/json":{"schema":{"type":"object","description":"Arbitrary JSON object representing the provisioning resource.","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"3e391f9a-582d-4b30-a4d2-c31476b42e5d":{"description":"Created (new document)","content":{"application/json":{"schema":{"type":"object","description":"Arbitrary JSON object representing the provisioning resource.","additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"998a347c-23fd-4e98-a496-1c35b5a44343":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"code":"BadRequest","message":"Invalid request parameters"}}},"exampleType":"examples"}},"exampleType":"examples"},"95dd5c26-e5a5-479a-b51f-486d76d4c246":{"description":"Unauthenticated","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"code":"Unauthenticated","message":"Authorization header with Bearer token is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"7ac77d6d-3b03-41e8-bbf8-38ea9eb71b80":{"description":"Permission denied","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"code":"PermissionDenied","message":"API key does not allow this operation"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"904030fd-bde0-49ff-b96b-4106d81ee3a8":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"}},"1ae2eeaa-74de-4a8f-bdc0-dd2d23f95ef2":{"bearerTokenQuery":{"type":"apiKey","in":"query","name":"bearer_token","description":"Alternative to the Authorization header. Prefer the Authorization header whenever possible.","scopes":[],"schemeName":"bearerTokenQuery"}}},"servers":{"13eed27f-bed5-4184-9aca-ffaac788cd8e":{"url":"https://platform.crescendo.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"query","name":"bearer_token","description":"Alternative to the Authorization header. Prefer the Authorization header whenever possible.","scopes":[],"schemeName":"bearerTokenQuery"},"schema":{"title":"bearer_token","type":"string","description":"Alternative to the Authorization header. Prefer the Authorization header whenever possible.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"bearerTokenQuery","name":"bearer_token"}],"title":"bearerTokenQuery"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"crescendo","siteName":"Crescendo Documentation","title":"Create or replace a provisioning document - Crescendo Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-30T22:24:05.267Z","originalFileLocation":"api-reference/endpoint/provisioning-post-replace.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=\"POST creates a new document or fully replaces an existing document.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Crescendo Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_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/crescendo/bh7vtLTs_6BVsgDf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or replace a provisioning document - Crescendo Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST creates a new document or fully replaces an existing document.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Crescendo Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://crescendo.mintlify.site/_mintlify/api/og/v2?division=Provisioning\u0026amp;title=Create+or+replace+a+provisioning+document\u0026amp;description=POST+creates+a+new+document+or+fully+replaces+an+existing+document.\u0026amp;theme=462e83dd91d21083d4d9d067\u0026amp;signature=1dc3cbec149747e434a5036db159531a873950dfdb69854e4d4810aa20088325\">\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=\"Create or replace a provisioning document - Crescendo Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST creates a new document or fully replaces an existing document.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://crescendo.mintlify.site/_mintlify/api/og/v2?division=Provisioning\u0026amp;title=Create+or+replace+a+provisioning+document\u0026amp;description=POST+creates+a+new+document+or+fully+replaces+an+existing+document.\u0026amp;theme=462e83dd91d21083d4d9d067\u0026amp;signature=1dc3cbec149747e434a5036db159531a873950dfdb69854e4d4810aa20088325\">\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/crescendo/bh7vtLTs_6BVsgDf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Crescendo Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/provisioning-post-replace.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.crescendo.ai/#organization\",\"name\":\"Crescendo Documentation\",\"url\":\"https://docs.crescendo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/crescendo/PrufNUUZARxizNf_/logo/light.png?fit=max\u0026auto=format\u0026n=PrufNUUZARxizNf_\u0026q=85\u0026s=7cca91b7869186ab147bc33d934a91ff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.crescendo.ai#website\",\"name\":\"Crescendo Documentation\",\"url\":\"https://docs.crescendo.ai\",\"publisher\":{\"@id\":\"https://docs.crescendo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace#webpage\",\"url\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace\",\"name\":\"Create or replace a provisioning document\",\"description\":\"POST creates a new document or fully replaces an existing document.\",\"dateModified\":\"2026-06-30T22:24:05.267Z\",\"isPartOf\":{\"@id\":\"https://docs.crescendo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Provisioning\",\"item\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-get-document\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create or replace a provisioning document\",\"item\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace#apireference\",\"headline\":\"Create or replace a provisioning document\",\"name\":\"Create or replace a provisioning document\",\"description\":\"POST creates a new document or fully replaces an existing document.\",\"url\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crescendo.ai/api-reference/endpoint/provisioning-post-replace#webpage\"},\"dateModified\":\"2026-06-30T22:24:05.267Z\",\"publisher\":{\"@id\":\"https://docs.crescendo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.crescendo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Crescendo Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Crescendo Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/provisioning-post-replace.md","siteName":"Crescendo Documentation","nav":{"global":{"anchors":[{"anchor":"Customer Stories","icon":"newspaper","href":"https://www.crescendo.ai/case-studies"},{"anchor":"Blog","icon":"newspaper","href":"https://www.crescendo.ai/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API","groups":[{"group":"Overview","pages":[{"title":"API Introduction","href":"/api-reference/introduction"}]},{"group":"Provisioning","pages":[{"title":"Get a provisioning document","openapi":"GET /api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","href":"/api-reference/endpoint/provisioning-get-document"},{"title":"List a provisioning collection","description":"Read a tenant-scoped collection and receive `{ id, data }` entries.","openapi":"GET /api/v1/provisioning/tenants/{tenantId}/{collection}","href":"/api-reference/endpoint/provisioning-get-collection"},{"title":"Create or replace a provisioning document","openapi":"POST /api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","href":"/api-reference/endpoint/provisioning-post-replace"},{"title":"Update a provisioning document","description":"PUT merges fields into an existing document (404 if missing).","openapi":"PUT /api/v1/provisioning/tenants/{tenantId}/{collection}/{docId}","href":"/api-reference/endpoint/provisioning-put-update"}]},{"group":"Assistants","pages":[{"title":"Send an Assistant message","openapi":"POST /api/v1/assistant/tenants/{tenantId}/bots/{botId}/messages","href":"/api-reference/endpoint/assistant-messages"}]},{"group":"Reporting","pages":[{"title":"Export Assistant conversations (reporting)","openapi":"GET /api/v1/reporting/tenants/{tenantId}/assistant/conversations","href":"/api-reference/endpoint/reporting-botconv"},{"title":"Export Assistant conversation by ID (reporting)","openapi":"GET /api/v1/reporting/tenants/{tenantId}/assistant/conversations/{convId}","href":"/api-reference/endpoint/reporting-botconv-by-id"},{"title":"Export VOC conversations (reporting)","openapi":"GET /api/v1/reporting/tenants/{tenantId}/voc/conversations","href":"/api-reference/endpoint/reporting-vocconv"}]},{"group":"VOC","pages":[{"title":"Upload a VOC recording","openapi":"POST /api/v1/voc/tenants/{tenantId}/recording","href":"/api-reference/endpoint/voc-upload-recording"},{"title":"Get VOC recording status","openapi":"GET /api/v1/voc/tenants/{tenantId}/recording/{jobId}/status","href":"/api-reference/endpoint/voc-recording-status"}]},{"group":"MCP","pages":[{"title":"MCP bots endpoint","openapi":"POST /api/v1/mcp/tenants/{tenantId}/bots","href":"/api-reference/endpoint/mcp-bots"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/service/get-service-info"}]}]},"basePath":"","title":"Create or replace a provisioning document - Crescendo Documentation","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}