POST v1/company/{companyId}/contacts/EditContact/{id}
Update contact detail for a company
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId |
Company id |
decimal number |
Required |
| id |
Contact id |
decimal number |
Required |
Body Parameters
Contact object details
AppContactRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| contactMaster |
Contact Master Data |
AppContactMasterModel |
None. |
| ContactImage |
Contact Image |
AppContactImageModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"contactMaster": {
"Id": 1.0,
"ContactType": "sample string 2",
"Name": "sample string 3",
"EMail": "sample string 4",
"Address1": "sample string 5",
"Address2": "sample string 6",
"Address3": "sample string 7",
"Post": "sample string 8",
"State": "sample string 9",
"Phone": "sample string 10",
"F_CountryMaster": 1.0,
"IsActive": true
},
"ContactImage": {
"FileName": "sample string 1",
"ContentType": "sample string 2",
"FileContents": "sample string 3"
}
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponseOfAppContactMasterViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | AppContactMasterViewModel |
None. |
|
| Status | boolean |
None. |
|
| Message | string |
None. |
|
| Errors |
Errors occures while processing request |
Collection of ApiError |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": {
"Id": 1.0,
"ContactType": "sample string 2",
"Name": "sample string 3",
"EMail": "sample string 4",
"Address1": "sample string 5",
"Address2": "sample string 6",
"Address3": "sample string 7",
"Post": "sample string 8",
"State": "sample string 9",
"Phone": "sample string 10",
"F_CountryMaster": 11.0,
"CountryName": "sample string 12",
"IsActive": true,
"ContactImage": "sample string 17"
},
"Status": true,
"Message": "sample string 2",
"Errors": [
{
"Number": 1,
"Message": "sample string 2",
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
},
{
"Number": 1,
"Message": "sample string 2",
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}
]
}