Department List API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department?keyword=tech&includeTeams=1&includeRoles=1&status=active | - |
| keyword | To search department using name | - |
| includeTeams | To get the teams for assigned department & it should pass as 1 | - |
| includeRoles | To get the roles for assigned department & it should pass as 1 | - |
| status | must be 'active' or 'inactive' column | - |
| sort_key | must be 'id' or 'name' column | - |
| sort_order | must be 'asc' or 'desc' | - |
| departmentId | pass the department encrypted ID | - |
Department Store API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department | - |
| name * | min char - 3, max char - 25 | It accepts alpha numeric symbols characters |
| status | Must be active or inactive | It accepts alpha characters and it should be active or inactive |
| description | min char - 2, max char - 250 | It accepts any characters |
Department Update API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department/encrypted_department_id | - |
| name * | min char - 3, max char - 25 | It accepts alpha numeric symbols characters |
| status | Must be active or inactive | It accepts alpha characters and it should be active or inactive |
| description | min char - 2, max char - 250 | It accepts any characters |
Department Delete API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department/encrypted_department_id | - |
Department Department Lock and Unlock API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department/lock - Lock | http://zaicrm.com/api/department/unlock - Unlock | - |
| department_id | Pass the department ID in the format Ex:MQ==,MJ== | - |
| status | Must be active or inactive | It accepts alpha characters and it should be active or inactive |
Department multiple delete API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://zaicrm.com/api/department/bulkdelete | - |
| delete_id | Pass the department ID in the format Ex:MQ==,MJ== | - |
Department Archive API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://devapi.zaicrm.com/api/department/archive | - |
| archive_department_ids | Pass the department ID in the format Ex:NzU=,NzQ= | - |
Department - Roles and Teams Status update API
| Field * required | Validations | Rule |
|---|---|---|
| URL | http://devapi.zaicrm.com/api/roleteams/lock | - |
| department_role_team_json | Ex:department_role_team_json:{"NA==":{"roles":["MTA=","NQ=="],"teams":["NQ==","OQ=="]},"Mg==":{"roles":["OQ==","MTI="],"teams":["MTY="]}} | - |
| status | Must be active or inactive | It accepts alpha characters and it should be active or inactive |