Schedules - thenibirahmed/wp-client-management GitHub Wiki

Get All Schedules

Endpoint

/schedules

Note: The API will respond to all of its schedules if the request auth user is an administrator. Otherwise, those schedules that contain the user ID are called guest_id.

Create Schedule

Endpoint

   /schedule/create

Needed api.

   /select-employee
   /select-schedule-client
   {
      hosted_by: ,   // id come from /select-employee,
      guest_ids: [], // Id's from both (/select-employee , /select-schedule-client) within an array
      topic: '',
      description: '',
      scheduled_at: '', // Y-m-d H:i:s
      duration: '',
      duration_type: '',     // minutes, hours, days
      link: ''
   }

Delete Schedule

Endpoint

   /schedule/delete/{id}