POST api/moduleo/telephone
Crée un numéro de téléphone.
Request Information
URI Parameters
None.
Body Parameters
ApiIncomingTelephoneName | Description | Type | Additional information |
---|---|---|---|
IdTelephone | integer |
None. |
|
IdContact | integer |
None. |
|
Numero | string |
Max length: 100 |
|
Lieu | string |
Max length: 100 |
|
ProprietesModifiees | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "IdTelephone": 1, "IdContact": 1, "Numero": "sample string 1", "Lieu": "sample string 2", "ProprietesModifiees": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ApiIncomingTelephone 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> <IdContact>1</IdContact> <IdTelephone>1</IdTelephone> <Lieu>sample string 2</Lieu> <Numero>sample string 1</Numero> </ApiIncomingTelephone>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTelephone" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdContact" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Numero" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Lieu" sample string 2 --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 ApiTelephone.
ApiTelephoneName | Description | Type | Additional information |
---|---|---|---|
IdTelephone |
Identifiant du téléphone |
integer |
None. |
Numero |
Numéro de téléphone |
string |
None. |
Lieu |
Lieu du numéro de téléphone |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "IdTelephone": 1, "Numero": "sample string 2", "Lieu": "sample string 3" }
application/xml, text/xml
Sample:
<ApiTelephone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api"> <IdTelephone>1</IdTelephone> <Lieu>sample string 3</Lieu> <Numero>sample string 2</Numero> </ApiTelephone>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTelephone" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Numero" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Lieu" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e--