Update 'thecaoffice-hr.py'

This commit is contained in:
2026-01-02 11:49:29 +00:00
parent 7a60104c49
commit 966879e0dd
+12 -12
View File
@@ -3,7 +3,7 @@
{ {
'username': '', 'username': '',
'password': '', 'password': '',
'mode': 'app' 'mode': 'app' # ... Required ("cosec")
} }
#Login Output response #Login Output response
@@ -54,13 +54,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', # ... Required 'email': 'employee@company.com', # ... Required (?? or User Name -> to lower and space becomes dot "@velankanigroup.com")
'name': 'John Smith', # ... Required 'name': 'John Smith', # ... Required (User Name)
"idDepartment": 1, # ... Required "idDepartment": 1, # ... Required (??)
'role': 'Software Engineer', # ... Required 'role': 'Software Engineer', # ... Required (Category Name)
'phoneNo': '9876543210', # ... Required 'phoneNo': '9876543210', # ... Required (?? or "9876543210")
'username': 'john.smith', # ... Required 'username': 'john.smith', # ... Required (User Name -> to lower and space becomes dot)
'password': 'password123', # ... Required 'password': 'password123', # ... Required ("9876543210")
'address': '123 Main St, Mumbai, Maharashtra', 'address': '123 Main St, Mumbai, Maharashtra',
"website": 'http://company.com', "website": 'http://company.com',
"logoUrl": null, "logoUrl": null,
@@ -141,8 +141,8 @@ final applicantNotesParam = {
# Api for the branch add : https://api.thecaoffice.com/commons/branch/add # Api for the branch add : https://api.thecaoffice.com/commons/branch/add
Paylod = { Paylod = {
'idUser':1643 'idUser':1643 # ... Required (from session token)
'branchName': 'Main Branch', 'branchName': 'Main Branch', # ... Required (Branch Name)
'address': '123 Street, Mumbai, Maharashtra', 'address': '123 Street, Mumbai, Maharashtra',
'branchHead': 'John Doe', 'branchHead': 'John Doe',
'branchHeadId': 18, 'branchHeadId': 18,
@@ -189,8 +189,8 @@ Paylod = {
# 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 # ... Required (from session token)
'departmentName': departmentController.text, 'departmentName': departmentController.text, # ... Required (Department Name)
}; };
# Api for the department add : https://api.thecaoffice.com/commons/departments/list # Api for the department add : https://api.thecaoffice.com/commons/departments/list