cURL
curl --request POST \ --url https://api.ai2fin.com/api/category-sets/{id}/duplicate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Business Expenses Copy" } '
{ "success": true, "set": { "id": "<string>", "name": "Business Expenses", "description": "All business-related expense categories", "color": "#3B82F6", "icon": "Briefcase", "userId": "<string>", "isDefault": true, "isActive": true, "categoryCount": 123, "categories": [ { "id": "<string>", "name": "<string>", "icon": "<string>", "color": "<string>", "isTaxDeductible": true, "taxCategory": "<string>", "defaultGstRate": 123 } ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }, "message": "<string>" }
Create a copy of a category set with all its categories.
JWT token obtained from /api/auth/login endpoint. Use for standard API access and OAuth-based integrations.
"Business Expenses Copy"
Category set duplicated
A category set for organizing categories into groups (e.g., Business Expenses, Tax Deductible, Personal). Elite+ feature.
Show child attributes
Was this page helpful?