latestOpenAPI 3.0.02026-08-12207455917.9 KB

bad0d2db9b7a

Contacts

Create contact

Create a new directory contact. firstName, lastName, and email are required. If isShared is true, the current user must be a broker.

Validation & Requirements

Required Parameters

  • form (body, object)

Required JSON Body Fields

  • firstName (minLength=1, maxLength=100)
  • lastName (minLength=1, maxLength=100)
  • email (format=email, minLength=1, maxLength=100)

Validations

  • Invalid GUID values in *Guid/*Guids fields return 422 Unprocessable Entity.
  • Invalid date values in *date* fields return 422 Unprocessable Entity.
  • Missing required request body returns 422 Unprocessable Entity with Missing request body..
  • Additional business-rule validation may return 422 with details in the errors array.
post/api/contacts

Request body

firstNamestring required
lastNamestring required
companystring nullable
emailstring email required
streetNumberstring nullable
streetNamestring nullable
zipstring nullable
citystring nullable
statestring nullable
phonestring phone nullable
alternatePhonestring phone nullable
faxstring phone nullable
isSharedboolean nullable

Only broker users can share their contacts with other users

isCompanyboolean nullable

Response

warningsstring[] nullable