From eef0db8d261019b8eb93539b44b2755b2af3bb11 Mon Sep 17 00:00:00 2001 From: maximeroucher Date: Thu, 2 Jul 2026 16:44:02 +0200 Subject: [PATCH] fix: missing 204 --- app/modules/amap/endpoints_amap.py | 2 +- app/modules/cdr/endpoints_cdr.py | 6 +++--- app/modules/ph/endpoints_ph.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/modules/amap/endpoints_amap.py b/app/modules/amap/endpoints_amap.py index 82c4ada6d9..ca3259d43d 100644 --- a/app/modules/amap/endpoints_amap.py +++ b/app/modules/amap/endpoints_amap.py @@ -287,7 +287,7 @@ async def edit_delivery( @module.router.post( "/amap/deliveries/{delivery_id}/products", - status_code=201, + status_code=204, ) async def add_product_to_delivery( products_ids: schemas_amap.DeliveryProductsUpdate, diff --git a/app/modules/cdr/endpoints_cdr.py b/app/modules/cdr/endpoints_cdr.py index 2666d72b84..25339d02d6 100644 --- a/app/modules/cdr/endpoints_cdr.py +++ b/app/modules/cdr/endpoints_cdr.py @@ -1671,7 +1671,7 @@ async def create_purchase( @module.router.post( "/cdr/batch-purchases/", - status_code=201, + status_code=204, ) async def create_purchase_batch( batch: schemas_cdr.BatchPurchase, @@ -1972,7 +1972,7 @@ async def mark_purchase_as_validated( @module.router.post( "/cdr/batch-validation/", - status_code=201, + status_code=204, ) async def validate_purchase_batch( batch: schemas_cdr.BatchValidation, @@ -2365,7 +2365,7 @@ async def delete_curriculum( @module.router.post( "/cdr/users/{user_id}/curriculums/{curriculum_id}/", - status_code=201, + status_code=204, ) async def create_curriculum_membership( user_id: str, diff --git a/app/modules/ph/endpoints_ph.py b/app/modules/ph/endpoints_ph.py index 12f0c4da02..c737873e3c 100644 --- a/app/modules/ph/endpoints_ph.py +++ b/app/modules/ph/endpoints_ph.py @@ -175,7 +175,7 @@ async def create_paper( @module.router.post( "/ph/{paper_id}/pdf", - status_code=201, + status_code=204, ) async def create_paper_pdf_and_cover( paper_id: uuid.UUID,