POST api/Common/Contacts/Update
Request Information
URI Parameters
None.
Body Parameters
ContactListUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
ContactList | Collection of ContactResultModel |
None. |
|
WorkerId | globally unique identifier |
None. |
|
ClinicId | globally unique identifier |
None. |
|
UserId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "ContactList": [ { "Id": "f2336083-eef4-4e25-8213-db149eb26e3e", "PhoneNumber": "sample string 2", "Type": "sample string 3", "IsDefault": true, "IsDeleted": true }, { "Id": "f2336083-eef4-4e25-8213-db149eb26e3e", "PhoneNumber": "sample string 2", "Type": "sample string 3", "IsDefault": true, "IsDeleted": true } ], "WorkerId": "8b961e85-97fd-49e3-b95e-c6ff84440b7b", "ClinicId": "e11ec2ea-90b1-4e4d-a76e-f4e4a9ba5eeb", "UserId": "20cb7a9c-9405-44a0-99cb-d29107dc31f9" }
application/xml, text/xml
Sample:
<ContactListUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Common"> <ClinicId>e11ec2ea-90b1-4e4d-a76e-f4e4a9ba5eeb</ClinicId> <ContactList xmlns:d2p1="http://schemas.datacontract.org/2004/07/iP.Products.Domains.MySDS.Models"> <d2p1:ContactResultModel> <d2p1:Id>f2336083-eef4-4e25-8213-db149eb26e3e</d2p1:Id> <d2p1:IsDefault>true</d2p1:IsDefault> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:PhoneNumber>sample string 2</d2p1:PhoneNumber> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:ContactResultModel> <d2p1:ContactResultModel> <d2p1:Id>f2336083-eef4-4e25-8213-db149eb26e3e</d2p1:Id> <d2p1:IsDefault>true</d2p1:IsDefault> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:PhoneNumber>sample string 2</d2p1:PhoneNumber> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:ContactResultModel> </ContactList> <UserId>20cb7a9c-9405-44a0-99cb-d29107dc31f9</UserId> <WorkerId>8b961e85-97fd-49e3-b95e-c6ff84440b7b</WorkerId> </ContactListUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[0].Id" f2336083-eef4-4e25-8213-db149eb26e3e --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[0].PhoneNumber" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[0].Type" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[0].IsDefault" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[0].IsDeleted" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[1].Id" f2336083-eef4-4e25-8213-db149eb26e3e --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[1].PhoneNumber" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[1].Type" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[1].IsDefault" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ContactList[1].IsDeleted" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerId" 8b961e85-97fd-49e3-b95e-c6ff84440b7b --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ClinicId" e11ec2ea-90b1-4e4d-a76e-f4e4a9ba5eeb --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserId" 20cb7a9c-9405-44a0-99cb-d29107dc31f9 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.