Skip to content

Instantly share code, notes, and snippets.

@umair-khokhar
Last active May 18, 2019 05:00
Show Gist options
  • Select an option

  • Save umair-khokhar/92fd806ff6002cd38f56cc8c8ef82fcb to your computer and use it in GitHub Desktop.

Select an option

Save umair-khokhar/92fd806ff6002cd38f56cc8c8ef82fcb to your computer and use it in GitHub Desktop.
Request
=======
POST <URL TBD> HTTP/1.1
Content-Type: application/json
{
"data": [
{
"type": "applicant",
"id": 1, //only if you need to update an applicant
"properties": {
"firstname": "foo",
"lastname": "bar",
"email": "[email protected]",
"company": "ABC Inc.",
"jobtitle": "Dev",
"interview_deadline_date": 1553572800000,
"interview_link": "http://www.foo.bar",
"interview_message": "sample",
"interview_status": "initial",
"job_city": "New York",
"job_state": "NY",
"corporate_video_link": "http://link",
"interview_deadline_days": 6,
"workflow_id": 100,
"hubspotscore": 20,
"hs_email_delivered": 2,
"hs_email_bounced": 0,
"hs_email_opened": 0,
"hs_email_clicked": 0,
"first_hs_email_send_date": 1553572800000,
"first_hs_email_open_date": 1553572800000,
"first_hs_email_click_date": 1553572800000,
"last_hs_email_send_date": 1553572800000,
"last_hs_email_open_date": 1553572800000,
"last_hs_email_click_date": 1553572800000,
"last_hs_email_name": "email",
"hs_unsubscribed_from_all": true,
"hs_sends_since_last_engagement": 3,
"currentlyinworkflow", true
}
}
]
}
Response:
==========
HTTP/1.1 200 OK or 204 NO CONTENT
Content-Type: application/json
{
"data": [
{
"type": "applicant",
"id": 1,
"properties": {
"firstname": "foo",
"lastname": "bar",
"email": "[email protected]",
"company": "ABC Inc.",
"jobtitle": "Dev",
"interview_deadline_date": 1553572800000,
"interview_link": "http://www.foo.bar",
"interview_message": "sample",
"interview_status": "initial",
"job_city": "New York",
"job_state": "NY",
"corporate_video_link": "http://link",
"interview_deadline_days": 6,
"workflow_id": 100,
"hubspotscore": 20,
"hs_email_delivered": 2,
"hs_email_bounced": 0,
"hs_email_opened": 0,
"hs_email_clicked": 0,
"first_hs_email_send_date": 1553572800000,
"first_hs_email_open_date": 1553572800000,
"first_hs_email_click_date": 1553572800000,
"last_hs_email_send_date": 1553572800000,
"last_hs_email_open_date": 1553572800000,
"last_hs_email_click_date": 1553572800000,
"last_hs_email_name": "email",
"hs_unsubscribed_from_all": true,
"hs_sends_since_last_engagement": 3,
"currentlyinworkflow", true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment