POST api/cogeo/affaire

Crée une affaire.

Request Information

URI Parameters

None.

Body Parameters

ApiIncomingAffaire
NameDescriptionTypeAdditional information
Id

integer

None.

Numero

string

Max length: 50

Objet

string

None.

IdResponsable

integer

None.

IdCollaborateur

integer

None.

IdGeometreExpert

integer

None.

IdSite

integer

None.

IdService

integer

None.

Adresse

string

None.

IdCommune

integer

None.

IdClient

integer

None.

QualiteClient

string

None.

DateCreation

date

None.

DateOuverture

date

None.

DateCloture

date

None.

DateLivraison

date

None.

Etat

EtatsAffaire

None.

IdRepresentant

integer

None.

QualiteRepresentant

string

None.

ProprietesModifiees

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Numero": "sample string 1",
  "Objet": "sample string 2",
  "IdResponsable": 1,
  "IdCollaborateur": 1,
  "IdGeometreExpert": 1,
  "IdSite": 1,
  "IdService": 1,
  "Adresse": "sample string 3",
  "IdCommune": 1,
  "IdClient": 1,
  "QualiteClient": "sample string 4",
  "DateCreation": "2024-12-22T04:08:38.8724728+01:00",
  "DateOuverture": "2024-12-22T04:08:38.8724728+01:00",
  "DateCloture": "2024-12-22T04:08:38.8724728+01:00",
  "DateLivraison": "2024-12-22T04:08:38.8724728+01:00",
  "Etat": 1,
  "IdRepresentant": 1,
  "QualiteRepresentant": "sample string 5",
  "ProprietesModifiees": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ApiIncomingAffaire 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>
  <Adresse>sample string 3</Adresse>
  <DateCloture>2024-12-22T04:08:38.8724728+01:00</DateCloture>
  <DateCreation>2024-12-22T04:08:38.8724728+01:00</DateCreation>
  <DateLivraison>2024-12-22T04:08:38.8724728+01:00</DateLivraison>
  <DateOuverture>2024-12-22T04:08:38.8724728+01:00</DateOuverture>
  <Etat>Production</Etat>
  <Id>1</Id>
  <IdClient>1</IdClient>
  <IdCollaborateur>1</IdCollaborateur>
  <IdCommune>1</IdCommune>
  <IdGeometreExpert>1</IdGeometreExpert>
  <IdRepresentant>1</IdRepresentant>
  <IdResponsable>1</IdResponsable>
  <IdService>1</IdService>
  <IdSite>1</IdSite>
  <Numero>sample string 1</Numero>
  <Objet>sample string 2</Objet>
  <QualiteClient>sample string 4</QualiteClient>
  <QualiteRepresentant>sample string 5</QualiteRepresentant>
</ApiIncomingAffaire>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

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

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

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

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

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

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

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

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

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

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

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

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

2024-12-22T04:08:38.8724728+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateOuverture"

2024-12-22T04:08:38.8724728+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateCloture"

2024-12-22T04:08:38.8724728+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateLivraison"

2024-12-22T04:08:38.8724728+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Etat"

Production
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdRepresentant"

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

sample string 5
--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 ApiAffaire.

ApiAffaire
NameDescriptionTypeAdditional information
IdAffaire

Identifiant de l'affaire

integer

None.

Numero

Numéro de l'affaire

string

None.

Etat

État actuel de l'affaire (créée, production, clôturée, etc.)

EtatsAffaire

None.

IdGroupe

Identifiant unique du groupe d'affaires lié à cette affaire

integer

None.

Objet

Objet de l'affaire

string

None.

DateCreation

Date de création de l'affaire

date

None.

DateOuverture

Date d'ouverture de l'affaire

date

None.

DateCloture

Date de clôture de l'affaire

date

None.

DateLivraison

Date de livraison de l'affaire

date

None.

Commentaire

Commentaire de l'affaire

string

None.

IdResponsable

Identifiant unique du responsable de l'affaire

integer

None.

IdActeurEnCharge

Identifiant unique de l'acteur en charge de l'affaire

integer

None.

IdSite

Identifiant unique du site en charge de l'affaire

integer

None.

IdService

Identifiant unique du service en charge de l'affaire

integer

None.

IdClient

Identifiant unique du client de l'affaire

integer

None.

IdRepresentant

Identifiant unique du représentant de l'affaire

integer

None.

QualiteClient

Qualité du client de l'affaire

string

None.

QualiteRepresentant

Qualité du représentant du client de l'affaire

string

None.

Adresse

Adresse postale concernant l'affaire

string

None.

IdCommune

Identifiant unique de la commune sur laquelle est située l'affaire

integer

None.

IdDossierProduction

Identifiant unique du dossier de production lié à l'affaire

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IdAffaire": 1,
  "Numero": "sample string 2",
  "Etat": 1,
  "IdGroupe": 1,
  "Objet": "sample string 3",
  "DateCreation": "2024-12-22T04:08:38.8881087+01:00",
  "DateOuverture": "2024-12-22T04:08:38.8881087+01:00",
  "DateCloture": "2024-12-22T04:08:38.8881087+01:00",
  "DateLivraison": "2024-12-22T04:08:38.8881087+01:00",
  "Commentaire": "sample string 8",
  "IdResponsable": 9,
  "IdActeurEnCharge": 10,
  "IdSite": 11,
  "IdService": 12,
  "IdClient": 13,
  "IdRepresentant": 1,
  "QualiteClient": "sample string 14",
  "QualiteRepresentant": "sample string 15",
  "Adresse": "sample string 16",
  "IdCommune": 1,
  "IdDossierProduction": 17
}

application/xml, text/xml

Sample:
<ApiAffaire xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api">
  <Adresse>sample string 16</Adresse>
  <Commentaire>sample string 8</Commentaire>
  <DateCloture>2024-12-22T04:08:38.8881087+01:00</DateCloture>
  <DateCreation>2024-12-22T04:08:38.8881087+01:00</DateCreation>
  <DateLivraison>2024-12-22T04:08:38.8881087+01:00</DateLivraison>
  <DateOuverture>2024-12-22T04:08:38.8881087+01:00</DateOuverture>
  <Etat>Production</Etat>
  <IdActeurEnCharge>10</IdActeurEnCharge>
  <IdAffaire>1</IdAffaire>
  <IdClient>13</IdClient>
  <IdCommune>1</IdCommune>
  <IdDossierProduction>17</IdDossierProduction>
  <IdGroupe>1</IdGroupe>
  <IdRepresentant>1</IdRepresentant>
  <IdResponsable>9</IdResponsable>
  <IdService>12</IdService>
  <IdSite>11</IdSite>
  <Numero>sample string 2</Numero>
  <Objet>sample string 3</Objet>
  <QualiteClient>sample string 14</QualiteClient>
  <QualiteRepresentant>sample string 15</QualiteRepresentant>
</ApiAffaire>

multipart/form-data

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

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

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

Production
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdGroupe"

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

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

2024-12-22T04:08:38.8881087+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateOuverture"

2024-12-22T04:08:38.8881087+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateCloture"

2024-12-22T04:08:38.8881087+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DateLivraison"

2024-12-22T04:08:38.8881087+01:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Commentaire"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdResponsable"

9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdActeurEnCharge"

10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdSite"

11
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdService"

12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdClient"

13
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdRepresentant"

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

sample string 14
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="QualiteRepresentant"

sample string 15
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Adresse"

sample string 16
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IdCommune"

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

17
--MultipartDataMediaFormatterBoundary1q2w3e--