| POST | /soggetti/{SoggettoId}/contatti | Crea o aggiorna un contatto associato a un Soggetto. | Effettua un'operazione di Upsert basata sull'indirizzo Email all'interno dello stesso Soggetto. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SoggettoId | path | int | Yes | ID univoco del Soggetto a cui associare il Contatto. |
| body | string | Yes | Indirizzo Email del contatto. Funge da chiave univoca per l'Upsert. | |
| Nome | body | string | Yes | Nome del contatto. |
| Cognome | body | string | Yes | Cognome del contatto. |
| TelFisso | body | string | No | Numero di telefono fisso. |
| TelMobile | body | string | No | Numero di telefono cellulare. |
| WebSite | body | string | No | URL del sito web del contatto o dell'azienda associata. |
| TipoTitoloId | body | int | No | ID del Titolo predefinito. |
| AltroTitolo | body | string | No | Titolo non presente nelle tabelle di lookup (salvato come testo libero). |
| TipoRuoloId | body | int | No | ID del Ruolo predefinito. |
| AltroRuolo | body | string | No | Ruolo non presente nelle tabelle di lookup (salvato come testo libero). |
| Note | body | string | No | Note libere aggiuntive relative al contatto. |
| Tags | body | string | No | Etichette (Tags) separate da virgola per la categorizzazione del contatto. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| SoggettoId | form | int | No | |
| Nome | form | string | No | |
| Cognome | form | string | No | |
| form | string | No | ||
| TelFisso | form | string | No | |
| TelMobile | form | string | No | |
| WebSite | form | string | No | |
| TipoTitoloId | form | int | No | |
| Titolo | form | TipoTitolo | No | |
| AltroTitolo | form | string | No | |
| TipoRuoloId | form | int | No | |
| Ruolo | form | TipoRuolo | No | |
| AltroRuolo | form | string | No | |
| Tags | form | string | No | |
| Note | form | string | No | |
| IsLista | form | bool | No | |
| IsDisIscritto | form | bool | No | |
| IsBounced | form | bool | No | |
| DataCreazione | form | DateTime | No | |
| DataModifica | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Descrizione | form | string | No | |
| AziendaId | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Descrizione | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soggetti/{SoggettoId}/contatti HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: application/json
Content-Type: application/json
Content-Length: length
{"soggettoId":0,"email":"String","nome":"String","cognome":"String","telFisso":"String","telMobile":"String","webSite":"String","tipoTitoloId":0,"altroTitolo":"String","tipoRuoloId":0,"altroRuolo":"String","note":"String","tags":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":0,"soggettoId":0,"nome":"String","cognome":"String","email":"String","telFisso":"String","telMobile":"String","webSite":"String","tipoTitoloId":0,"titolo":{"id":0,"descrizione":"String","aziendaId":0},"altroTitolo":"String","tipoRuoloId":0,"ruolo":{"id":0,"descrizione":"String"},"altroRuolo":"String","tags":"String","note":"String","isLista":false,"isDisIscritto":false,"isBounced":false}