curl -X POST https://api.companyflow.com/companies/{company_id}/departments \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Engineering", "code": "ENG", "description": "Software engineering and development", "cost_center": "CC-100", "status": "active" }'
{ "success": true, "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "company_id": "987fcdeb-51a2-43f7-9c5d-123456789abc", "name": "Engineering", "code": "ENG", "description": "Software engineering and development", "parent_department_id": null, "cost_center": "CC-100", "status": "active", "created_at": "2026-03-03T10:00:00Z", "updated_at": "2026-03-03T10:00:00Z" } }
Create a new department within a company
active
inactive
Show Department Object