Create a new budgeting category for a budgeting.
A JSON object containing budgeting category information.
Successful operation
Unprocessable Content
{- "name": "KPI",
- "budgeting": "956bc5a691b6a2cf67c4f963029dd3dcb9776be3"
}
{- "success": true,
- "hash": "93a019f628caa51353491a1f18d4f6e62443b5b8",
- "data": {
- "id": 244,
- "hash": "d93e72a0f4774dafecee3855a579228a2a833df6",
- "position": 4,
- "name": "KPI",
- "created_time": "2022-07-12T14:43:40.000000Z",
- "modified_time": "2022-07-12T14:43:40.000000Z",
- "modified_user_time": "2022-07-12T14:43:40.000000Z",
- "model": "BudgetingCategory",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657637020041
}
Get all budgeting categories of the authenticated hub.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "27634e1465db39811d1bea2e619f3d61f20f52ff",
- "data": [
- {
- "id": 4,
- "hash": "2a3633b85818388897dcb8b5717927484ada465d",
- "position": 1,
- "name": "P&L",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "BudgetingCategory",
- "budgeting": {
- "id": 1,
- "hash": "d42985eeb5bc6fdcc81539896f58f179899335b5",
- "name": "Airborne (Default)",
- "start_time": "2022-04-27",
- "end_time": "2023-03-27",
- "scaling": 2,
- "offset": 0,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "Budgeting"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "id": 5,
- "hash": "5e4deda376707cc38986975c795be8d1e3170a4a",
- "position": 2,
- "name": "Balance/Cash",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "BudgetingCategory",
- "budgeting": {
- "id": 1,
- "hash": "d42985eeb5bc6fdcc81539896f58f179899335b5",
- "name": "Airborne (Default)",
- "start_time": "2022-04-27",
- "end_time": "2023-03-27",
- "scaling": 2,
- "offset": 0,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "Budgeting"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "id": 6,
- "hash": "2f5f420bd197dec2516a774f038c6dc3c9429366",
- "position": 3,
- "name": "KPI",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "BudgetingCategory",
- "budgeting": {
- "id": 1,
- "hash": "d42985eeb5bc6fdcc81539896f58f179899335b5",
- "name": "Airborne (Default)",
- "start_time": "2022-04-27",
- "end_time": "2023-03-27",
- "scaling": 2,
- "offset": 0,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "Budgeting"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 3,
- "total": 3,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1657637691346
}
Get a budgeting category.
Successful operation
Not Found
{- "success": true,
- "hash": "1d1602c8d9f690b1827ac625b4e37a11d1fc2863",
- "data": {
- "id": 5,
- "hash": "5e4deda376707cc38986975c795be8d1e3170a4a",
- "position": 2,
- "name": "Balance/Cash",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "BudgetingCategory",
- "budgeting": {
- "id": 1,
- "hash": "d42985eeb5bc6fdcc81539896f58f179899335b5",
- "name": "Airborne (Default)",
- "start_time": "2022-04-27",
- "end_time": "2023-03-27",
- "scaling": 2,
- "offset": 0,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "Budgeting"
}, - "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657638236029
}
Update a budgeting category.
Successful operation
Not Found
Unprocessable Content
{- "name": "P&L"
}
{- "success": true,
- "hash": "a07797549b7b39e83935b1737c075a6a883ca07a",
- "data": {
- "id": 5,
- "hash": "5e4deda376707cc38986975c795be8d1e3170a4a",
- "position": 2,
- "name": "P&L",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-07-12T15:08:22.000000Z",
- "modified_user_time": "2022-07-12T15:08:22.000000Z",
- "model": "BudgetingCategory",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657638502031
}
Delete a budgeting category.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1657638799503
}
Position a budgeting category in relation to another budgeting category.
A JSON object containing budgeting category information.
Successful operation
Not Found
Unprocessable Content
{- "position": "before",
- "budgeting_category": 5
}
{- "success": true,
- "hash": "192dab761e17a782da25ec5a2de4dfdc48c650f3",
- "data": {
- "id": 5,
- "hash": "5e4deda376707cc38986975c795be8d1e3170a4a",
- "position": 4,
- "name": "Balance/Cash",
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "model": "BudgetingCategory",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1655976061248
}
Restore a budgeting category.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1657639899235
}