Crear contacto

Crear contacto. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.

POST /Contact

Crear contacto. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.

Descripción de OpenAPI: Este endpoint crea un nuevo contacto con los datos proporcionados en el cuerpo de la solicitud.

Autenticación

Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.

Parámetros

Esta operación no tiene parámetros de ruta, consulta o encabezado.

Órgano solicitante

Tipo de contenido: application/json · Schema: ContactDto

PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
firstNamestringNo—nullable
lastNamestringNo—nullable
fullNamestringNo—nullable
linkedInUrlstringNo—nullable
titlestringNo—nullable
companyNamestringNo—nullable
accountIdinteger · int32No——
preferredUserIdinteger · int32No——
enabledbooleanNo——
externalIdstringNo—nullable
primaryEmailstringNo—nullable
primaryPhonestringNo—nullable

Ejemplo de solicitud

curl --request POST \
  --url 'https://api.zild.ai/Contact' \
  --header 'X-API-Key: YOUR_USER_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 0,
  "firstName": "string",
  "lastName": "string",
  "fullName": "string",
  "linkedInUrl": "string",
  "title": "string",
  "companyName": "string",
  "accountId": 0,
  "preferredUserId": 0,
  "enabled": true,
  "externalId": "string",
  "primaryEmail": "string",
  "primaryPhone": "string"
}'

Respuestas

EstadoDescripciónCuerpo de respuesta
200Contacto creado correctamenteapplication/json · ContactDto

Respuesta de ejemplo (200):

{
  "id": 0,
  "firstName": "string",
  "lastName": "string",
  "fullName": "string",
  "linkedInUrl": "string",
  "title": "string",
  "companyName": "string",
  "accountId": 0,
  "preferredUserId": 0,
  "enabled": true,
  "externalId": "string",
  "primaryEmail": "string",
  "primaryPhone": "string"
}

Modelos de datos

ContactDto
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
firstNamestringNo—nullable
lastNamestringNo—nullable
fullNamestringNo—nullable
linkedInUrlstringNo—nullable
titlestringNo—nullable
companyNamestringNo—nullable
accountIdinteger · int32No——
preferredUserIdinteger · int32No——
enabledbooleanNo——
externalIdstringNo—nullable
primaryEmailstringNo—nullable
primaryPhonestringNo—nullable