Contacts

Create new contact

post/v1/contacts

Request

  • Base URL: https://api.dayschedule.com/v1
  • URL: https://api.dayschedule.com/v1/v1/contacts
  • Auth: none declared

Request body

contact_idnumber nullable
account_idnumber nullable
user_idnumber nullable
namestring required
emailstring email nullable

Either email or phone is required

phonestring nullable

Either email or phone is required

citystring nullable
countrystring nullable
avatarstring nullable
companystring nullable
followupstring date-time nullable
sourcestring nullable
ratingnumber nullable
tagsstring[] nullable
created_atstring nullable
updated_atstring nullable

Example request

{
  "name": "Vikash Rathee",
  "email": "vikash.rathee@dayschedule.com",
  "phone": "+1234567890",
  "city": "New York",
  "country": "US",
  "avatar": "https://example.com/avatar.jpg",
  "company": "Example Inc.",
  "followup": "1970-01-01T00:00:00.000Z",
  "source": "Referral",
  "rating": 5,
  "tags": [
    "important",
    "lead"
  ],
  "custom_fields": [
    {
      "name": "Custom Field 1",
      "value": "Value 1"
    },
    {
      "name": "Custom Field 2",
      "value": "Value 2"
    }
  ],
  "updated_at": "1970-01-01T00:00:00.000Z"
}

Response

OK

contact_idnumber nullable
account_idnumber nullable
user_idnumber nullable
namestring required
emailstring email nullable

Either email or phone is required

phonestring nullable

Either email or phone is required

citystring nullable
countrystring nullable
avatarstring nullable
companystring nullable
followupstring date-time nullable
sourcestring nullable
ratingnumber nullable
tagsstring[] nullable
created_atstring nullable
updated_atstring nullable

Example response

{
  "name": "Vikash Rathee",
  "email": "vikash.rathee@dayschedule.com",
  "phone": "+1234567890",
  "city": "New York",
  "country": "US",
  "avatar": "https://example.com/avatar.jpg",
  "company": "Example Inc.",
  "followup": "1970-01-01T00:00:00.000Z",
  "source": "Referral",
  "rating": 5,
  "tags": [
    "important",
    "lead"
  ],
  "custom_fields": [
    {
      "name": "Custom Field 1",
      "value": "Value 1"
    },
    {
      "name": "Custom Field 2",
      "value": "Value 2"
    }
  ],
  "updated_at": "1970-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.