POST yhteydenotot
Lisää osapuolen yhteydenoton
Request Information
URI Parameters
None.
Body Parameters
ApiOsapuoliYhteydenottoRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ViestiketjuId | Yhteydenoton viestiketjun id | integer | None. |
| OsapuoliId | Asiakkaan osapuoliId | integer | Required |
| Lahde | Lähde, josta otettu yhteyttä | string | Max length: 100 |
| SoittoId | Callcenterin SoittoId | integer | None. |
| Yhteydenottotapa | Yhteydenottotapa | ApiYhteydenottotapa | Required |
| Aihe | Yhteydenoton aihe | string | Max length: 500 |
| Kuvaus | Kuvaus yhteydenotosta | string | None. |
| Luokittelut | Yhteydenoton luokittelut. | Collection of integer | None. |
| Lisaaja | Yhteydenoton lisääjän tunnus. | string | Max length: 50 |
| Liitteet | Collection of ApiFileBase64Container | None. | |
| Lahettaja | Yhteydenoton lähettäjä | ApiOsapuoliYhteydenottoLahettaja | None. |
| KohdeId | Kustannuspaikan id tai muu kohteen id | integer | None. |
Request Formats
application/json, text/json
Sample:
{
"ViestiketjuId": 1,
"OsapuoliId": 1,
"Lahde": "sample string 2",
"SoittoId": 1,
"Yhteydenottotapa": "Soitto",
"Aihe": "sample string 3",
"Kuvaus": "sample string 4",
"Luokittelut": [
1,
2
],
"Lisaaja": "sample string 5",
"Liitteet": [
{
"FileName": "sample string 1",
"ContentType": "sample string 2",
"Description": "sample string 3",
"Base64Content": "sample string 4"
},
{
"FileName": "sample string 1",
"ContentType": "sample string 2",
"Description": "sample string 3",
"Base64Content": "sample string 4"
}
],
"Lahettaja": "Osapuoli",
"KohdeId": 1
}
application/xml, text/xml
Sample:
<ApiOsapuoliYhteydenottoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Asiakaspalvelu">
<Aihe>sample string 3</Aihe>
<KohdeId>1</KohdeId>
<Kuvaus>sample string 4</Kuvaus>
<Lahde>sample string 2</Lahde>
<Lahettaja>Osapuoli</Lahettaja>
<Liitteet xmlns:d2p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract">
<d2p1:ApiFileBase64Container>
<d2p1:Base64Content>sample string 4</d2p1:Base64Content>
<d2p1:ContentType>sample string 2</d2p1:ContentType>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:FileName>sample string 1</d2p1:FileName>
</d2p1:ApiFileBase64Container>
<d2p1:ApiFileBase64Container>
<d2p1:Base64Content>sample string 4</d2p1:Base64Content>
<d2p1:ContentType>sample string 2</d2p1:ContentType>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:FileName>sample string 1</d2p1:FileName>
</d2p1:ApiFileBase64Container>
</Liitteet>
<Lisaaja>sample string 5</Lisaaja>
<Luokittelut xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Luokittelut>
<OsapuoliId>1</OsapuoliId>
<SoittoId>1</SoittoId>
<ViestiketjuId>1</ViestiketjuId>
<Yhteydenottotapa>Soitto</Yhteydenottotapa>
</ApiOsapuoliYhteydenottoRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenericPostResponse
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | Uuden resurssin id. | integer | None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1
}
application/xml, text/xml
Sample:
<GenericPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract"> <Id>1</Id> </GenericPostResponse>