PUT api/cogeo/contact/personne/{idPersonne}

Met à jour une personne en fonction de son identifiant unique.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idPersonne

Identifiant unique de la personne

integer

Required

Body Parameters

ApiIncomingPersonne
NameDescriptionTypeAdditional 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": "2024-12-22T03:03:39.9704533+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>2024-12-22T03:03:39.9704533+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"

2024-12-22T03:03:39.9704533+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

OkResult
NameDescriptionTypeAdditional information
Request

HttpRequestMessage

None.

Response Formats

application/json, text/json, multipart/form-data

Sample:

Sample not available.