Email - thenibirahmed/wp-client-management GitHub Wiki

Get All Email

Endpoint (GET)

/emails

Get Single Email

Endpoint (GET)

/email/{id}

Create Email

Endpoint (POST)

/email/create

Params

{
    eic_crm_user_id: '', //must be integer 
    project_id: '', //must be integer
    client_id: '', // must be integer
    subject: '',
    body: '',
    scheduled_at: '', //time format
    sent: 1/0 // boolean
}

Update Email

Endpoint (PUT/PATCH)

/email/update/{id}

Params

{
    eic_crm_user_id: '', //must be integer 
    project_id: '', //must be integer
    client_id: '', // must be integer
    subject: '',
    body: '',
    scheduled_at: '', //time format
    sent: 1/0 // boolean
}

Delete Email

Endpoint (DELETE)

/email/delete/{id}