Les points de terminaison de la base documentaire permettent à une intégration externe (par exemple un workflow n8n) d’envoyer, lister et supprimer les documents d’un agent. L’API utilise automatiquement le RAG interne ou le Vector Store OpenAI/Azure configuré sur l’agent.Envoi en multipart/form-data.
Paramètres
string
required
UUID de l’agent. Il doit appartenir à la société propriétaire du token.
file
required
Le document. Types acceptés : TXT, MD, CSV, JSON, PDF, DOCX, PPTX, XLSX,
MP3, WAV, MP4, SRT, VTT. Taille max : 500 Mo (configurable).
string
Pour le RAG interne, renvoyer le même externalId remplace la version
précédente. Pour un Vector Store, le remplacement est automatique lorsqu’un
fichier du même nom existe déjà.
Pour un agent OpenAI/Azure, le champ id retourné est l’identifiant du
fichier du Vector Store. Il sert également à le
supprimer.
Réponses
Code
Corps JSON
201
Document enregistré, voir l’exemple de réponse (id est une chaîne pour un fichier Vector Store)
400
{ "error": "No file provided" } / type ou externalId invalide
401
{ "error": "Provide Auth via Authorization with \"Bearer YOUR_MOUSTACHE_AI_API_TOKEN\"" }
404
{ "error": "Agent not found for your company" }
409
{ "error": "A concurrent upload for this externalId is in progress; retry shortly" }, ou { "error": "A replacement upload for this externalId is still processing; retry after it reaches READY or FAILED" } tant que la version précédente est en PENDING ou PROCESSING
413
{ "error": "File size exceeds the 500 MB limit" }
422
Fournisseur actuel incompatible avec les documents
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Moustache AI","colors":{"primary":"#ff0000"},"api":{"playground":{"display":"simple"},"mdx":{"server":"https://app-green.moustacheai.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"moustacheai","hasAudioNarration":false,"actualSubdomain":"moustacheai","customDomains":["docs.moustacheai.com"],"gitSource":{"type":"github","owner":"moustacheai","repo":"moustache-ai-united","deployBranch":"main","contentDirectory":"moustache-ai/app/api/v1/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aedd691c42bb37e740851cb","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation v1","count":19},{"language":"default","tag":"Conversations","count":6},{"language":"default","tag":"Pour commencer","count":4},{"language":"default","tag":"Base documentaire","count":3},{"language":"default","tag":"Claude et ChatGPT","count":3},{"language":"default","tag":"Clients","count":2},{"language":"default","tag":"Widget","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"base-documentaire/ajouter","slug":"/base-documentaire/ajouter","pageMetadata":{"title":"Ajouter ou mettre à jour un document","sidebarTitle":"Ajouter un document","api":"POST /api/v1/agents/{agentUUID}/rag-resources","description":null,"href":"/base-documentaire/ajouter"},"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`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Note,ParamField,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Les points de terminaison de la base documentaire permettent à une intégration externe (par exemple un `,_jsx(_components.strong,{children:`workflow n8n`}),`) d’envoyer, lister et supprimer les documents d’un agent. L’API utilise automatiquement le RAG interne ou le Vector Store OpenAI/Azure configuré sur l’agent.`]}),`\n`,_jsxs(_components.p,{children:[`Envoi en `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`multipart/form-data`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`paramètres`,children:`Paramètres`}),`\n`,_jsx(ParamField,{path:`agentUUID`,type:`string`,required:true,id:`param-agent-uuid`,children:_jsx(_components.p,{children:`UUID de l’agent. Il doit appartenir à la société propriétaire du token.`})}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`Le document. Types acceptés : `,_jsx(_components.strong,{children:`TXT, MD, CSV, JSON, PDF, DOCX, PPTX, XLSX,\nMP3, WAV, MP4, SRT, VTT`}),`. Taille max : 500 Mo (configurable).`]})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Pour le RAG interne, renvoyer le même `,_jsx(_components.code,{children:`externalId`}),` remplace la version\nprécédente. Pour un Vector Store, le remplacement est automatique lorsqu’un\nfichier du même nom existe déjà.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Pour un agent OpenAI/Azure, le champ `,_jsx(_components.code,{children:`id`}),` retourné est l’identifiant du\nfichier du Vector Store. Il sert également à le\n`,_jsx(_components.a,{href:`/base-documentaire/supprimer`,children:`supprimer`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`réponses`,children:`Réponses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Corps JSON`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`201`}),_jsxs(_components.td,{children:[`Document enregistré, voir l’exemple de réponse (`,_jsx(_components.code,{children:`id`}),` est une chaîne pour un fichier Vector Store)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"No file provided\" }`}),` / type ou `,_jsx(_components.code,{children:`externalId`}),` invalide`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Provide Auth via Authorization with \\\\\"Bearer YOUR_MOUSTACHE_AI_API_TOKEN\\\\\"\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Agent not found for your company\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"A concurrent upload for this externalId is in progress; retry shortly\" }`}),`, ou `,_jsx(_components.code,{children:`{ \"error\": \"A replacement upload for this externalId is still processing; retry after it reaches READY or FAILED\" }`}),` tant que la version précédente est en `,_jsx(_components.code,{children:`PENDING`}),` ou `,_jsx(_components.code,{children:`PROCESSING`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"File size exceeds the 500 MB limit\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Fournisseur actuel incompatible avec les documents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"Rate limit exceeded\" }`}),` (en-tête `,_jsx(_components.code,{children:`Retry-After`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Failed to upload RAG resource\" }`})})]})]})]})]})}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":"Ajouter ou mettre à jour un document","sidebarTitle":"Ajouter un document","api":"POST /api/v1/agents/{agentUUID}/rag-resources","description":null,"href":"/base-documentaire/ajouter"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Les points de terminaison de la base documentaire permettent à une intégration externe (par exemple un `,_jsx(_components.strong,{children:`workflow n8n`}),`) d’envoyer, lister et supprimer les documents d’un agent. L’API utilise automatiquement le RAG interne ou le Vector Store OpenAI/Azure configuré sur l’agent.`]}),`\n`,_jsxs(_components.p,{children:[`Envoi en `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`multipart/form-data`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`paramètres`,children:`Paramètres`}),`\n`,_jsx(ParamField,{path:`agentUUID`,type:`string`,required:true,id:`param-agent-uuid`,children:_jsx(_components.p,{children:`UUID de l’agent. Il doit appartenir à la société propriétaire du token.`})}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`Le document. Types acceptés : `,_jsx(_components.strong,{children:`TXT, MD, CSV, JSON, PDF, DOCX, PPTX, XLSX,\nMP3, WAV, MP4, SRT, VTT`}),`. Taille max : 500 Mo (configurable).`]})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Pour le RAG interne, renvoyer le même `,_jsx(_components.code,{children:`externalId`}),` remplace la version\nprécédente. Pour un Vector Store, le remplacement est automatique lorsqu’un\nfichier du même nom existe déjà.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Pour un agent OpenAI/Azure, le champ `,_jsx(_components.code,{children:`id`}),` retourné est l’identifiant du\nfichier du Vector Store. Il sert également à le\n`,_jsx(_components.a,{href:`/base-documentaire/supprimer`,children:`supprimer`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`réponses`,children:`Réponses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Corps JSON`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`201`}),_jsxs(_components.td,{children:[`Document enregistré, voir l’exemple de réponse (`,_jsx(_components.code,{children:`id`}),` est une chaîne pour un fichier Vector Store)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"No file provided\" }`}),` / type ou `,_jsx(_components.code,{children:`externalId`}),` invalide`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Provide Auth via Authorization with \\\\\"Bearer YOUR_MOUSTACHE_AI_API_TOKEN\\\\\"\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Agent not found for your company\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"A concurrent upload for this externalId is in progress; retry shortly\" }`}),`, ou `,_jsx(_components.code,{children:`{ \"error\": \"A replacement upload for this externalId is still processing; retry after it reaches READY or FAILED\" }`}),` tant que la version précédente est en `,_jsx(_components.code,{children:`PENDING`}),` ou `,_jsx(_components.code,{children:`PROCESSING`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"File size exceeds the 500 MB limit\" }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Fournisseur actuel incompatible avec les documents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ \"error\": \"Rate limit exceeded\" }`}),` (en-tête `,_jsx(_components.code,{children:`Retry-After`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`{ \"error\": \"Failed to upload RAG resource\" }`})})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://app-green.moustacheai.com/api/v1/agents/28ce3b2d-5791-4905-8d66-123456789abc/rag-resources'`}),_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 MON_API_TOKEN\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@guide.pdf\"`}),_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:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"externalId=notion-page-42\"`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201`,numberOfLines:`12`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"notion-page-42\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"guide.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_size_bytes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20480`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chunk_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\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":"Ajouter ou mettre à jour un document","sidebarTitle":"Ajouter un document","api":"POST /api/v1/agents/{agentUUID}/rag-resources","description":null,"href":"/base-documentaire/ajouter"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Paramètres","slug":"paramètres","depth":2,"children":[]},{"title":"Réponses","slug":"réponses","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://app-green.moustacheai.com/api/v1/agents/28ce3b2d-5791-4905-8d66-123456789abc/rag-resources'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer MON_API_TOKEN\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"file=@guide.pdf\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -F\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"externalId=notion-page-42\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"notion-page-42\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"file_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"guide.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"file_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"file_size_bytes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20480\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PENDING\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"chunk_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error_message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"…\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"…\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Ajouter ou mettre à jour un document","path":"/api/v1/agents/{agentUUID}/rag-resources","servers":[{"url":"https://app-green.moustacheai.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{"agentUUID":{"schema":[{"type":"string","description":"UUID de l’agent. Il doit appartenir à la société propriétaire du token.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"file":[{"type":"file","description":"Le document. Types acceptés : TXT, MD, CSV, JSON, PDF, DOCX, PPTX, XLSX, MP3, WAV, MP4, SRT, VTT . Taille max : 500 Mo (configurable).","required":true}],"externalId":[{"type":"string","description":"Pour le RAG interne, renvoyer le même `externalId` remplace la version précédente. Pour un Vector Store, le remplacement est automatique lorsqu’un fichier du même nom existe déjà."}]}}],"examples":{"example":{"value":{"externalId":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"moustacheai","siteName":"Moustache AI","title":"Ajouter ou mettre à jour un document - Moustache AI","navMaps":{"firstHrefInVersion":{"v1":{"href":"/base-documentaire/ajouter","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T09:13:40.617Z","originalFileLocation":"base-documentaire/ajouter.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=\"application-name\" content=\"Moustache AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/moustacheai/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/moustacheai/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/moustacheai/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/moustacheai/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Ajouter ou mettre à jour un document - Moustache AI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Moustache AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.moustacheai.com/base-documentaire/ajouter\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://moustacheai.mintlify.site/_mintlify/api/og/v2?division=Base+documentaire\u0026amp;title=Ajouter+ou+mettre+%C3%A0+jour+un+document\u0026amp;theme=a075a1a17c6aa77736a49bab\u0026amp;signature=d587a2dd6bdd352b7657eb54d021800fecd7e110f9f8a856b6c8c66086336d45\">\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=\"Ajouter ou mettre à jour un document - Moustache AI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://moustacheai.mintlify.site/_mintlify/api/og/v2?division=Base+documentaire\u0026amp;title=Ajouter+ou+mettre+%C3%A0+jour+un+document\u0026amp;theme=a075a1a17c6aa77736a49bab\u0026amp;signature=d587a2dd6bdd352b7657eb54d021800fecd7e110f9f8a856b6c8c66086336d45\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/moustacheai/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Moustache AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff0000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.moustacheai.com/base-documentaire/ajouter\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/base-documentaire/ajouter.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.moustacheai.com/#organization\",\"name\":\"Moustache AI\",\"url\":\"https://docs.moustacheai.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.moustacheai.com#website\",\"name\":\"Moustache AI\",\"url\":\"https://docs.moustacheai.com\",\"publisher\":{\"@id\":\"https://docs.moustacheai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.moustacheai.com/base-documentaire/ajouter#webpage\",\"url\":\"https://docs.moustacheai.com/base-documentaire/ajouter\",\"name\":\"Ajouter ou mettre à jour un document\",\"dateModified\":\"2026-11-02T09:13:40.617Z\",\"isPartOf\":{\"@id\":\"https://docs.moustacheai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.moustacheai.com/base-documentaire/ajouter#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.moustacheai.com/base-documentaire/ajouter#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Moustache AI\",\"item\":\"https://docs.moustacheai.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ajouter ou mettre à jour un document\",\"item\":\"https://docs.moustacheai.com/base-documentaire/ajouter\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.moustacheai.com/base-documentaire/ajouter#apireference\",\"headline\":\"Ajouter ou mettre à jour un document\",\"name\":\"Ajouter ou mettre à jour un document\",\"url\":\"https://docs.moustacheai.com/base-documentaire/ajouter\",\"mainEntityOfPage\":{\"@id\":\"https://docs.moustacheai.com/base-documentaire/ajouter#webpage\"},\"dateModified\":\"2026-11-02T09:13:40.617Z\",\"publisher\":{\"@id\":\"https://docs.moustacheai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.moustacheai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Moustache AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Moustache AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/base-documentaire/ajouter.md","siteName":"Moustache AI","nav":{"global":null,"versions":[{"version":"v1","dropdowns":[{"dropdown":"Documentation v1","icon":"book","description":"Documentation de Moustache AI API v1","pages":[{"group":"Pour commencer","pages":[{"title":"Documentation API v1","sidebarTitle":"Introduction","href":""},{"title":"Authentification","href":"/authentification"},{"title":"Erreurs et bonnes pratiques","href":"/erreurs"},{"title":"Changelog","href":"/changelog"}]},{"group":"Claude et ChatGPT","pages":[{"title":"Utiliser Moustache AI avec Claude ou ChatGPT","sidebarTitle":"Démarrer avec Claude","href":"/claude-chatgpt/index"},{"title":"Référence des outils MCP","href":"/claude-chatgpt/outils"},{"title":"Connecter Cursor ou VS Code","href":"/claude-chatgpt/connexion"}]},{"group":"Clients","pages":[{"title":"Créer ou mettre à jour un client","sidebarTitle":"Créer ou modifier un client","api":"POST /api/v1/customers","href":"/clients/creer"},{"title":"Récupérer un client","sidebarTitle":"Récupérer un client","api":"GET /api/v1/customers","href":"/clients/recuperer"}]},{"group":"Conversations","pages":[{"title":"Envoyer une question à un agent","sidebarTitle":"Envoyer une question","api":"POST /api/v1/responses","href":"/conversations/envoyer"},{"title":"Récupérer l’historique d’une conversation","sidebarTitle":"Récupérer l’historique","api":"GET /api/v1/responses","href":"/conversations/historique"},{"title":"Reporting des conversations","href":"/conversations/reporting"},{"title":"Noter une réponse","api":"PUT /api/v1/responses/{uuid}/review","href":"/conversations/noter"},{"title":"Réinitialiser une conversation","sidebarTitle":"Réinitialiser la conversation","api":"POST /api/v1/responses/reset","href":"/conversations/reinitialiser"},{"title":"Détails techniques du mode stream","sidebarTitle":"Mode stream","description":"Format et comportement des réponses en flux de POST /api/v1/responses.","href":"/conversations/mode-stream"}]},{"group":"Base documentaire","pages":[{"title":"Ajouter ou mettre à jour un document","sidebarTitle":"Ajouter un document","api":"POST /api/v1/agents/{agentUUID}/rag-resources","href":"/base-documentaire/ajouter"},{"title":"Lister les documents et leur statut","sidebarTitle":"Lister les documents","api":"GET /api/v1/agents/{agentUUID}/rag-resources","description":null,"href":"/base-documentaire/lister"},{"title":"Supprimer un document par clé externe","sidebarTitle":"Supprimer un document","api":"DELETE /api/v1/agents/{agentUUID}/rag-resources/{externalId}","href":"/base-documentaire/supprimer"}]},{"group":"Widget","pages":[{"title":"Identité vérifiée du widget","sidebarTitle":"Identité vérifiée","href":"/identite-verifiee"}]}]}]}]},"basePath":"","title":"Ajouter ou mettre à jour un document - Moustache AI","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}