POST api/cogeo/contact/personne
Crée un contact de type 'Personne'.
Request Information
URI Parameters
None.
Body Parameters
ApiIncomingPersonne| Name | Description | Type | Additional information |
|---|---|---|---|
| Civilite | Civilites |
None. |
|
| Nom | string |
Max length: 150 |
|
| NomJeuneFille | string |
Max length: 150 |
|
| Prenom | string |
Max length: 100 |
|
| AutresPrenoms | string |
Max length: 200 |
|
| DateNaissance | date |
None. |
|
| IdCommuneNaissance | integer |
None. |
|
| Sexe | Sexes |
None. |
|
| Id | integer |
None. |
|
| ProprietesModifiees | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Civilite": 1,
"Nom": "sample string 1",
"NomJeuneFille": "sample string 2",
"Prenom": "sample string 3",
"AutresPrenoms": "sample string 4",
"DateNaissance": "2025-11-30T17:03:03.4381367+01:00",
"IdCommuneNaissance": 1,
"Sexe": 1,
"Id": 1,
"ProprietesModifiees": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ApiIncomingPersonne xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoCommunServeur.Business.Api.Incoming">
<ProprietesModifiees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ProprietesModifiees>
<Id>1</Id>
<Nom>sample string 1</Nom>
<TypeContact>Personne</TypeContact>
<AutresPrenoms>sample string 4</AutresPrenoms>
<Civilite>Mademoiselle</Civilite>
<DateNaissance>2025-11-30T17:03:03.4381367+01:00</DateNaissance>
<IdCommuneNaissance>1</IdCommuneNaissance>
<NomJeuneFille>sample string 2</NomJeuneFille>
<Prenom>sample string 3</Prenom>
<Sexe>Homme</Sexe>
</ApiIncomingPersonne>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Civilite" Mademoiselle --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Nom" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NomJeuneFille" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Prenom" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AutresPrenoms" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DateNaissance" 2025-11-30T17:03:03.4381367+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdCommuneNaissance" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Sexe" Homme --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TypeContact" Personne --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Retourne un ApiPersonne.
ApiPersonne| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Identifiant unique de la personne |
integer |
None. |
| Civilite |
Civilité de la personne |
Civilites |
None. |
| Prenom |
Prénom de la personne |
string |
None. |
| AutresPrenoms |
Autres prénoms de la personne |
string |
None. |
| NomJeuneFille |
Nom de famille de jeune fille de la personne |
string |
None. |
| NomUsage |
Nom de famille de la personne |
string |
None. |
| DateNaissance |
Date de naissance de la personne |
date |
None. |
| IdCommuneNaissance |
Identifiant unique de la commune de naissance de la personne |
integer |
None. |
| Sexe |
Sexe de la personne |
Sexes |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Civilite": 1,
"Prenom": "sample string 2",
"AutresPrenoms": "sample string 3",
"NomJeuneFille": "sample string 4",
"NomUsage": "sample string 5",
"DateNaissance": "2025-11-30T17:03:03.4381367+01:00",
"IdCommuneNaissance": 1,
"Sexe": 1
}
application/xml, text/xml
Sample:
<ApiPersonne xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api"> <AutresPrenoms>sample string 3</AutresPrenoms> <Civilite>Mademoiselle</Civilite> <DateNaissance>2025-11-30T17:03:03.4381367+01:00</DateNaissance> <Id>1</Id> <IdCommuneNaissance>1</IdCommuneNaissance> <NomJeuneFille>sample string 4</NomJeuneFille> <NomUsage>sample string 5</NomUsage> <Prenom>sample string 2</Prenom> <Sexe>Homme</Sexe> </ApiPersonne>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Civilite" Mademoiselle --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Prenom" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AutresPrenoms" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NomJeuneFille" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NomUsage" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DateNaissance" 2025-11-30T17:03:03.4381367+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdCommuneNaissance" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Sexe" Homme --MultipartDataMediaFormatterBoundary1q2w3e--