Added the sample response for the department and branch list

This commit is contained in:
yatmesh
2026-01-02 09:18:14 +00:00
parent 378010697a
commit 926887a656
+69 -7
View File
@@ -37,13 +37,13 @@
# if yes then add team member / branch / department as needed # if yes then add team member / branch / department as needed
# Api for the team add : https://api.thecaoffice.com/team/add # Api for the team add : https://api.thecaoffice.com/team/add
Payload = { Payload = {
'email': 'employee@company.com', 'email': 'employee@company.com', # ... Required
'name': 'John Smith', # ... Required 'name': 'John Smith', # ... Required
"idDepartment": 1, "idDepartment": 1, # ... Required
'role': 'Software Engineer', 'role': 'Software Engineer', # ... Required
'phoneNo': '9876543210', 'phoneNo': '9876543210', # ... Required
'username': 'john.smith', 'username': 'john.smith', # ... Required
'password': 'password123', 'password': 'password123', # ... Required
'address': '123 Main St, Mumbai, Maharashtra', 'address': '123 Main St, Mumbai, Maharashtra',
"website": 'http://company.com', "website": 'http://company.com',
"logoUrl": null, "logoUrl": null,
@@ -139,16 +139,78 @@ Paylod = {
'msmeNo': 'MSME1234567890', 'msmeNo': 'MSME1234567890',
} }
# Api for the branch list : https://api.thecaoffice.com/commons/branch/list
# branch List Input JSON
{
"idUser":1643
}
# Branch List output JSON:
{
"code": 1,
"data": {
"http_code": 200,
"numeric_code": 4201,
"rs0": [
{
"branch_head": null,
"branch_id": 45,
"branch_name": "Testing",
"contact_email": null,
"contact_phone": null,
"created_at": 1733405356000,
"entity_id": 118,
"notes": "{\n \"address\": null,\n \"city\": null,\n \"pincode\": null,\n \"branchHead\": \"Sahil Khan\",\n \"gstNumber\": null,\n \"bankName\": null,\n \"bankAccountNo\": null,\n \"bankIfscCode\": null,\n \"panCard\": null,\n \"serviceTaxNo\": null\n}",
"updated_at": 1733405356000
}
]
},
"message": "Department list",
"status": 1
}
#------------------------------------------------------------
# Api for the department add : https://api.thecaoffice.com/commons/departments/add # Api for the department add : https://api.thecaoffice.com/commons/departments/add
params = { params = {
'idUser':1643 'idUser':1643
'departmentName': departmentController.text, 'departmentName': departmentController.text,
}; };
# Api for the department add : https://api.thecaoffice.com/commons/departments/list
# Department List Input JSON
{
"idUser":1643
}
# Department List output JSON:
{
"code": 1,
"data": {
"http_code": 200,
"numeric_code": 4201,
"rs0": [
{
"contact_email": null,
"contact_phone": null,
"created_at": 1733123791000,
"department_head": null,
"department_id": 395,
"department_location": null,
"department_name": "Api",
"entity_id": 118,
"updated_at": 1749696986000
}
]
},
"message": "Department list",
"status": 1
}
#------------------------------------------------------------
# Mark attendance based on in out register time spent and hr rules # Mark attendance based on in out register time spent and hr rules
# Api for the attendance mark : https://api.thecaoffice.com/user/attendance/mark # Api for the attendance mark : https://api.thecaoffice.com/user/attendance/mark
params = { params = {
"date": '2025-12-31', "date": '2025-12-31',
"idUser": 101, "idUser": 101, # ... this Id of the team member whose we are marking attendance
"status": 'P', "status": 'P',
"ot": 0 "ot": 0
}; };