POST api/Client/{clt}/AddContact

Ajout d'un Contact pour un client

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clt

ID du client

string

Required

Body Parameters

obj contact

ClientContacts
NameDescriptionTypeAdditional information
titrelib

string

None.

servicelib

string

None.

bRemove

boolean

None.

zzmaj

integer

None.

zzutil

string

None.

zzposte

string

None.

zzdate

string

None.

zzheure

string

None.

zzsynchro

integer

None.

client

string

None.

num

string

None.

ordre

string

None.

nom

string

None.

prenom

string

None.

titre

string

None.

tel

string

None.

tel_abr

string

None.

mobile

string

None.

fax

string

None.

email

string

None.

service

string

None.

message

string

None.

fax_cde

string

None.

email_cde

string

None.

fax_bl

string

None.

email_bl

string

None.

fax_facture

string

None.

email_facture

string

None.

fax_tarif

string

None.

email_tarif

string

None.

anniversaire

string

None.

Request Formats

application/json, text/json

Sample:
{
  "titrelib": "sample string 1",
  "servicelib": "sample string 2",
  "bRemove": true,
  "zzmaj": 4,
  "zzutil": "sample string 5",
  "zzposte": "sample string 6",
  "zzdate": "sample string 7",
  "zzheure": "sample string 8",
  "zzsynchro": 9,
  "client": "sample string 10",
  "num": "sample string 11",
  "ordre": "sample string 12",
  "nom": "sample string 13",
  "prenom": "sample string 14",
  "titre": "sample string 15",
  "tel": "sample string 16",
  "tel_abr": "sample string 17",
  "mobile": "sample string 18",
  "fax": "sample string 19",
  "email": "sample string 20",
  "service": "sample string 21",
  "message": "sample string 22",
  "fax_cde": "sample string 23",
  "email_cde": "sample string 24",
  "fax_bl": "sample string 25",
  "email_bl": "sample string 26",
  "fax_facture": "sample string 27",
  "email_facture": "sample string 28",
  "fax_tarif": "sample string 29",
  "email_tarif": "sample string 30",
  "anniversaire": "sample string 31"
}

application/xml, text/xml

Sample:
<ClientContacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAGACore">
  <anniversaire xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 31</anniversaire>
  <client xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 10</client>
  <email xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 20</email>
  <email_bl xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 26</email_bl>
  <email_cde xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 24</email_cde>
  <email_facture xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 28</email_facture>
  <email_tarif xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 30</email_tarif>
  <fax xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 19</fax>
  <fax_bl xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 25</fax_bl>
  <fax_cde xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 23</fax_cde>
  <fax_facture xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 27</fax_facture>
  <fax_tarif xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 29</fax_tarif>
  <message xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 22</message>
  <mobile xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 18</mobile>
  <nom xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 13</nom>
  <num xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 11</num>
  <ordre xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 12</ordre>
  <prenom xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 14</prenom>
  <service xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 21</service>
  <tel xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 16</tel>
  <tel_abr xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 17</tel_abr>
  <titre xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 15</titre>
  <zzdate xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 7</zzdate>
  <zzheure xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 8</zzheure>
  <zzmaj xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">4</zzmaj>
  <zzposte xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 6</zzposte>
  <zzsynchro xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">9</zzsynchro>
  <zzutil xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.DataBase">sample string 5</zzutil>
  <bRemove>true</bRemove>
  <servicelib>sample string 2</servicelib>
  <titrelib>sample string 1</titrelib>
</ClientContacts>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClientContacts'.

Response Information

Resource Description

bool

JSonGenericOfString
NameDescriptionTypeAdditional information
Response

string

None.

Datas

string

None.

ServiceName

string

None.

Parameters

string

None.

Status

ReturnErrorStatus

None.

ErrorMessage

string

None.

Error

jsonExceptionIES

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": "sample string 1",
  "Datas": "sample string 2",
  "ServiceName": "sample string 3",
  "Parameters": "sample string 4",
  "Status": 0,
  "ErrorMessage": "sample string 5",
  "Error": {
    "Code": "sample string 1",
    "Details": "sample string 2",
    "Message": "sample string 3",
    "Level": 1
  }
}

application/xml, text/xml

Sample:
<JSonGenericOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
  <Error>
    <Code>sample string 1</Code>
    <Details>sample string 2</Details>
    <Level>Info</Level>
    <Message>sample string 3</Message>
  </Error>
  <ErrorMessage>sample string 5</ErrorMessage>
  <Parameters>sample string 4</Parameters>
  <ServiceName>sample string 3</ServiceName>
  <Status>Error</Status>
  <Datas>sample string 2</Datas>
  <Response>sample string 1</Response>
</JSonGenericOfstring>