Contacts - thenibirahmed/wp-client-management GitHub Wiki

Contacts

Get All Team Members

   /team-members

We can search team members by name

   /team-members?search='abcd'

Create Team Member

endpoint

   /team-member/create

Extra API that might be needed.

   /select-project

Payload for creating a team-member

{
   name: '', // Unique 
   email: '', // Unique 
   phone: '',
   designation: '' ,
   projectIds: [],  // that might be an array of active projects for assigning the team member. "/select-project"
}

Update Team Member

endpoint

   /team-member/update/{id}

API for getting the team member details.

   /team-member/{id}/details

Payload for updating a team-member

{
   name: '', // Unique 
   email: '', // Unique 
   phone: '',
   designation: '' ,
   phone: '',
   adddress: '',
   city: '',
   zip: '',
   country: '',
   projectIds: [],  // that might be an array of active projects for assigning the team member. "/select-project"
}

Get a Single Team-member overview

endpoint

   /team-member/{id}/overview

Project

endpoint

   /team-member/{id}/projects

We can search for team member project by title

   /team-member/{id}/projects?search='abcd'

Task

endpoint

   /team-member/{id}/tasks

We can search for team member tasks by title

endpoint

   /team-member/{id}/tasks?search='xyz'