PUT api/contacts/{contactId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| contactId | integer |
Required |
Body Parameters
Contact| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId | integer |
None. |
|
| ClientId | integer |
Required |
|
| TypeId | integer |
Required |
|
| Name | string |
String length: inclusive between 0 and 500 |
|
| CompanyName | string |
String length: inclusive between 0 and 500 |
|
| Responsibility | string |
String length: inclusive between 0 and 500 |
|
| string |
String length: inclusive between 0 and 500 |
||
| MobileNumber | string |
String length: inclusive between 0 and 20 |
|
| OfficeNumber | string |
String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"ContactId": 1,
"ClientId": 2,
"TypeId": 3,
"Name": "sample string 4",
"CompanyName": "sample string 5",
"Responsibility": "sample string 6",
"Email": "sample string 7",
"MobileNumber": "sample string 8",
"OfficeNumber": "sample string 9"
}
application/xml, text/xml
Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Starship.WebAPI.Models"> <ClientId>2</ClientId> <CompanyName>sample string 5</CompanyName> <ContactId>1</ContactId> <Email>sample string 7</Email> <MobileNumber>sample string 8</MobileNumber> <Name>sample string 4</Name> <OfficeNumber>sample string 9</OfficeNumber> <Responsibility>sample string 6</Responsibility> <TypeId>3</TypeId> </Contact>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.