Met à jour les champs d'une ligne de source CSV existante appartenant à l'appelant.
Met à jour les champs d'une ligne csv_sources existante appartenant à l'utilisateur appelant.
Auth. : Jeton Bearer JWT (WorkOS). La mise à jour est limitée à votre utilisateur (la revendication sub), vous ne pouvez donc modifier que vos propres sources CSV.
| Paramètre | Type | Obligatoire | Notes |
|---|---|---|---|
id | uuid | oui | Identifiant de la ligne csv_sources. |
{
"schema_name": "post",
"spreadsheet_data": [ { "title": "Row 1" } ],
"status": "ready"
}
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
schema_name | string | non | Nouveau nom de schéma. |
spreadsheet_data | array | non | Remplace raw_data et définit row_count sur la longueur du tableau. |
status | string | non | Nouveau statut. |
Les trois sont facultatifs, mais au moins un doit être fourni.
La ligne complète mise à jour :
{
"id": "...",
"user_id": "...",
"schema_name": "post",
"file_name": "data.csv",
"file_url": null,
"raw_data": [],
"row_count": 1,
"status": "ready",
"error_msg": null,
"created_at": "2026-06-23T18:34:16Z",
"updated_at": "2026-06-23T20:36:55Z"
}
curl -X PATCH '{CMS_API_URL}/csv?id=<uuid>' \
-H 'Authorization: Bearer <workos-jwt>' \
-H 'Content-Type: application/json' \
-d '{"status":"ready"}'
400 — aucun champ modifiable fourni401 — revendication sub manquante ou JWT invalide404 — aucune ligne correspondante pour id + votre utilisateur500 — échec de la mise à jour