mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
82d887df98
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
---
|
||
title: "Créer une tâche d'agent"
|
||
openapi: /fr/admin-openapi.json POST /v2/agent/{projectId}/job
|
||
keywords: [ "tâche d'agent", "créer", "automatisation", "automatiser" ]
|
||
---
|
||
|
||
Ce point de terminaison crée une tâche d'agent en arrière-plan. La tâche s'exécute de manière asynchrone — utilisez le point de terminaison [récupérer une tâche d'agent](/fr/api/agent/v2/get-agent-job) pour vérifier régulièrement les mises à jour de statut.
|
||
|
||
Si l'agent modifie les fichiers avec succès, une pull request (demande de fusion) est automatiquement créée et le champ `prLink` est renseigné dans la réponse de la tâche.
|
||
|
||
<div id="rate-limits">
|
||
## Limites d’utilisation
|
||
</div>
|
||
|
||
* 100 utilisations par projet Mintlify et par heure
|
||
|
||
<div id="usage">
|
||
## Utilisation
|
||
</div>
|
||
|
||
```bash
|
||
curl -X POST https://api.mintlify.com/v2/agent/{projectId}/job \
|
||
-H "Authorization: Bearer mint_xxxxx" \
|
||
-H "Content-Type: application/json" \
|
||
-d '{"prompt": "Add a quickstart guide for the Python SDK"}'
|
||
```
|