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": "7362f4b1-2397-4454-985d-2426e0a39882",
"contactTypeId": "85352f30-e0a2-4fe8-ab3d-7c344a6acc5e",
"jobTitle": "sample string 2",
"titleId": "34304b9f-d01c-4b8f-9820-37886a7e2ae3",
"firstName": "sample string 3",
"lastName": "sample string 4",
"phone": "sample string 5",
"mobile": "sample string 6",
"email": "sample string 7",
"organisationId": "53ddf39f-9fc5-414c-b4ee-7d091b502aff",
"default": true,
"active": true
}
text/html
Sample:
{"id":"7362f4b1-2397-4454-985d-2426e0a39882","contactTypeId":"85352f30-e0a2-4fe8-ab3d-7c344a6acc5e","jobTitle":"sample string 2","titleId":"34304b9f-d01c-4b8f-9820-37886a7e2ae3","firstName":"sample string 3","lastName":"sample string 4","phone":"sample string 5","mobile":"sample string 6","email":"sample string 7","organisationId":"53ddf39f-9fc5-414c-b4ee-7d091b502aff","default":true,"active":true}
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.