PUT api/contacts
Request Information
URI Parameters
None.
Body Parameters
API.Infrastructure.Dto.Contacts.ContactDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| ContactTypeId | globally unique identifier |
Required |
|
| JobTitle | string |
None. |
|
| TitleId | globally unique identifier |
None. |
|
| FirstName | string |
Required |
|
| LastName | string |
Required |
|
| Phone | string |
None. |
|
| Mobile | string |
None. |
|
| string |
Matching regular expression pattern: ^[^\s@]+@[^\s@]+\.[^\s@]{2,}$ |
||
| OrganisationId | globally unique identifier |
Required |
|
| Default | boolean |
None. |
|
| Active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "d3d2e201-bf58-492a-9d94-40766a37ae4b",
"contactTypeId": "61762837-3bd2-4209-a59c-a4830f585007",
"jobTitle": "sample string 2",
"titleId": "674c6af8-2fa8-42f9-bd18-ef73f99cd995",
"firstName": "sample string 3",
"lastName": "sample string 4",
"phone": "sample string 5",
"mobile": "sample string 6",
"email": "sample string 7",
"organisationId": "95d0eb75-74c6-4b4c-80bb-863feeeb01bc",
"default": true,
"active": true
}
text/html
Sample:
{"id":"d3d2e201-bf58-492a-9d94-40766a37ae4b","contactTypeId":"61762837-3bd2-4209-a59c-a4830f585007","jobTitle":"sample string 2","titleId":"674c6af8-2fa8-42f9-bd18-ef73f99cd995","firstName":"sample string 3","lastName":"sample string 4","phone":"sample string 5","mobile":"sample string 6","email":"sample string 7","organisationId":"95d0eb75-74c6-4b4c-80bb-863feeeb01bc","default":true,"active":true}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.