POST api/cogeo/contact/collectivite

Crée un contact de type 'Collectivité'.

Request Information

URI Parameters

None.

Body Parameters

ApiIncomingCollectivite
NameDescriptionTypeAdditional information
Rcs

string

Max length: 70

NumIntracommunautaire

string

Max length: 70

Id

integer

None.

Nom

string

Max length: 150

ProprietesModifiees

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Rcs": "sample string 1",
  "NumIntracommunautaire": "sample string 2",
  "Id": 1,
  "Nom": "sample string 3",
  "ProprietesModifiees": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ApiIncomingCollectivite 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 3</Nom>
  <TypeContact>Collectivite</TypeContact>
  <NumIntracommunautaire>sample string 2</NumIntracommunautaire>
  <Rcs>sample string 1</Rcs>
</ApiIncomingCollectivite>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TypeContact"

Collectivite
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Rcs"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NumIntracommunautaire"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Nom"

sample string 3
--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 ApiCollectivite.

ApiCollectivite
NameDescriptionTypeAdditional information
Id

Identifiant unique de la collectivité

integer

None.

RCS

Numéro d'immatriculation au registre du commerce et des sociétés de la personne morale

string

None.

NumIntracommunautaire

Numéro de TVA intracommunautaire de la personne morale

string

None.

Siren

Numéro SIREN de la personne morale

string

None.

Siret

Numéro de SIRET de la personne morale

string

None.

Nic

Numéro interne de classement de la personne morale

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RCS": "sample string 2",
  "NumIntracommunautaire": "sample string 3",
  "Siren": "sample string 4",
  "Siret": "sample string 5",
  "Nic": "sample string 6"
}

application/xml, text/xml

Sample:
<ApiCollectivite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api">
  <Id>0</Id>
  <Nic>sample string 6</Nic>
  <NumIntracommunautaire>sample string 3</NumIntracommunautaire>
  <RCS>sample string 2</RCS>
  <Siren>sample string 4</Siren>
  <Siret>sample string 5</Siret>
  <Id>1</Id>
</ApiCollectivite>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="RCS"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="NumIntracommunautaire"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Siren"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Siret"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Nic"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e--