Skip to Content
Wagoo SaaS 1.0.25 is released 🎉
04 API ReferenceAvisAPI Avis

API Avis

Récupérez et modérez les avis clients.

Lister les avis

GET /api/projects/{projectId}/reviews

Paramètres

ParamètreTypeDescription
statusstringPENDING, APPROVED, REJECTED

Réponse (200)

{ "data": [ { "id": "review_123", "projectId": "proj_123", "rating": 5, "title": "Excellent!", "content": "Très satisfait du service...", "status": "APPROVED", "createdAt": "2024-01-15T10:30:00Z" } ] }

Créer un avis

POST /api/projects/{projectId}/reviews Content-Type: application/json

RequĂŞte

{ "rating": 5, "title": "Excellent service", "content": "Très satisfait du service fourni", "email": "client@example.com" }

Réponse (201)

{ "data": { ... } }

Modérer un avis

PATCH /api/projects/{projectId}/reviews/{reviewId} Authorization: Bearer TOKEN Content-Type: application/json

RequĂŞte

{ "status": "APPROVED" }

Supprimer un avis

DELETE /api/projects/{projectId}/reviews/{reviewId} Authorization: Bearer TOKEN

Voir Avis clients pour plus.

Last updated on