diff --git a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt index 4dee324..780384e 100644 --- a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt +++ b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt @@ -24,7 +24,7 @@ interface CategoryService { suspend fun createCategory(@Body categoryData: CategoryRequest): CategoryResponse @PATCH("/categories/{category_id}") - suspend fun createCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse + suspend fun updateCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse @DELETE("/categories/{category_id}") suspend fun deleteCategory(@Path("category_id") categoryId: String): Unit