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": "a9994637-ca0c-4fe9-a0f2-1cc8718c5740",
"contactTypeId": "e6037ba2-2ed9-4f64-8674-9aaca31328bd",
"jobTitle": "sample string 2",
"titleId": "d89e84dc-8afd-44a0-8b53-9577086fd88d",
"firstName": "sample string 3",
"lastName": "sample string 4",
"phone": "sample string 5",
"mobile": "sample string 6",
"email": "sample string 7",
"organisationId": "5acb775f-94a4-410c-b2b4-2fe81abfe0bb",
"default": true,
"active": true
}
text/html
Sample:
{"id":"a9994637-ca0c-4fe9-a0f2-1cc8718c5740","contactTypeId":"e6037ba2-2ed9-4f64-8674-9aaca31328bd","jobTitle":"sample string 2","titleId":"d89e84dc-8afd-44a0-8b53-9577086fd88d","firstName":"sample string 3","lastName":"sample string 4","phone":"sample string 5","mobile":"sample string 6","email":"sample string 7","organisationId":"5acb775f-94a4-410c-b2b4-2fe81abfe0bb","default":true,"active":true}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.