# Méthode 1 : création d'un flux XML

## Introduction

Pour importer vos missions, vous devez mettre à disposition un flux XML. L'API actualise sa base de données de manière autonome en analysant le flux XML toutes les 3 heures.

Les partenaires annonceurs doivent mettre à disposition un flux XML qui sera récupéré **toutes les** **3 heures** par l’API Engagement afin de mettre à jour les missions qu’elle a en base de données.

Ce flux est accessible via un **lien public** qui renvoie un fichier XML. Pour télécharger ce flux, le processus est le suivant:

```javascript
 const xml = await fetch("<https://www.partenaire.fr/mes-missions.xml>", { headers }).then((response) => response.text());
```

Si cette commande ne permet pas d'avoir vos missions, alors le lien fourni est **mal configuré**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.api-engagement.beta.gouv.fr/annoncer-des-missions/creation-dun-flux-xml/methode-1-creation-dun-flux-xml.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
