Updates the contact with the specified key
Request Information
URI Parameters :
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters :
contactName | Description | Type | Additional information |
---|---|---|---|
id |
Primary key |
globally unique identifier |
Required |
firstname |
Firstname of the contact |
string |
Max length: 50 |
lastname |
Lastname of the contact. If you have one single field available for firstname+lastname then use Lastname |
string |
Required Max length: 50 |
company_id |
Company of the contact |
globally unique identifier |
Optionally required : company_id,company_code or company must be provided |
company_code |
Embedded entity "company" using ERP PK when adding/updating contact |
string |
Optionally required : company_id,company_code or company must be provided |
company |
Embedded entity "company" when adding/updating contact |
company |
Optionally required : company_id,company_code or company must be provided |
db_language_id |
Language of the contact.If empty, will use the default on the system |
globally unique identifier | |
db_language_code |
Language code entity using international isocode when adding/updating contact |
string | |
db_title_id |
The title of the contact |
globally unique identifier | |
archived |
Archive this contact to not have it anymore on the search |
boolean | |
functions |
Function of the contact (ServiceManager,...) |
string |
Max length: 64 |
e_login |
Login of the contact (if have access to ServiceDesk) |
string |
Max length: 50 |
e_password |
Password in clear text of the contact (if have access to ServiceDesk) |
string |
Max length: 50 |
notes |
Notes/Remark field |
string | |
birthdate |
Birthday date |
date | |
create_date |
Creation date+time |
date | |
phone |
Phone number of the contact |
string |
Max length: 50 |
mobile |
a number of the contact |
string |
Max length: 50 |
|
string |
Max length: 250 |
|
skype |
skype |
string |
Max length: 250 |
private_phone |
Private phone number of the contact |
string |
Max length: 50 |
private_mobile |
Private mobile number of the contact |
string |
Max length: 50 |
private_email |
Private email |
string |
Max length: 250 |
reference_back_office |
Field used for Embedded entity (store there your ERP PK) |
string |
Max length: 50 |
modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{ "id": "b35c134d-3a67-4fce-8270-e0e672a9fa7c", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "03e28fde-6e23-4fc2-9f89-2ca0ab5b3272", "company_code": "sample string 5", "company": { "id": "05716192-c19a-4215-941f-8abbdb14dc2d", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2024-04-19T21:22:48.4273861+00:00", "sales_territory_id": "00f789a9-5a8a-4b52-9169-3a4c77c53bd3", "sales_territory_code": "sample string 9", "sales_territory": { "id": "4ba9b6f1-87de-4a6a-927f-bbbf88f72a08", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "0e53f183-7724-4064-baf8-e1a21e1169bb", "sales_organization_code": "sample string 5", "sales_organization": { "id": "682bd383-40e6-4f5a-bea0-b46befeffdd5", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "e2af961d-d6d9-41f9-adc8-26c9e6667dda", "db_currency_id": "03c90382-ed51-4a27-b25b-dbd034af2652", "db_language_id": "77f71354-969e-4126-9c8a-81cb5e8a720f", "accountancy_code": "sample string 8", "archived": true, "default_unit_of_measure_system_type": "sample string 10", "street": "sample string 11", "street2": "sample string 12", "street_number": "sample string 13", "zip": "sample string 14", "city": "sample string 15", "email": "sample string 16", "phone": "sample string 17", "fax": "sample string 18", "url": "sample string 19", "vat_reg_code": "sample string 20", "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00" }, "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00" }, "marketing_segment_id": "b794b3d8-0704-423d-95bf-81a15eaaeb73", "marketing_segment_code": "sample string 11", "sales_organization_id": "cc660f13-dbd6-4b39-84d3-209e62f06716", "sales_organization_code": "sample string 13", "company_sales_status_code": "sample string 14", "vat_reg_code": "sample string 15", "is_working_address": true, "parent_id": "fdd18ba3-4117-483e-a231-71ac6279c8fa", "parent_company_code": "sample string 18", "phone": "sample string 19", "fax": "sample string 20", "url": "sample string 21", "email": "sample string 22", "street": "sample string 23", "street_number": "sample string 24", "city": "sample string 25", "zip": "sample string 26", "db_country_id": "3d101a3c-6b10-41ff-86d4-1898a1839dfa", "db_country_code": "sample string 28", "feelist_id": "649a0d37-9201-49cc-8cb0-6a30441645db", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "f52ea05d-adec-43c8-8a57-e62d3b708386", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "72176db1-fba1-41e0-8ebd-f0b390df0b97", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00", "db_currency_id": "4fdf81d8-62b4-4f46-b0ae-03d071199798", "db_currency_code": "sample string 10" }, "company_type_id": "5ef31eb5-4320-4a46-abbc-a59dd85d88b1", "company_type_name": "sample string 32", "company_type": { "id": "5a994035-a0ac-4387-88ad-1a2d77f5fa51", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "3fca2e0b-474f-4aa8-9d2d-d1692a02b6e1", "sales_organization_code": "sample string 5" }, "db_language_id": "71cc2dbc-4787-4d4f-b083-24c968afa105", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "5ee5c484-b93d-4c8e-8acb-d8a858278f8c", "article_price_label_code": "sample string 37", "db_payment_method_id": "fdb4ee75-8afa-46e7-8c1c-e2f1d21acb44", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "4953cc39-e4a5-4e7b-8745-16aed8bd7f87", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00" }, "company_sector_id": "f72f5fa1-4954-405c-921b-9765472a1dd9", "company_sector_code": "sample string 41", "is_lead": true, "is_subcontractor": true, "latitude": 1.0, "longitude": 1.0, "street2": "sample string 44", "bic_code": "sample string 45", "specialities": "sample string 46", "register_number": "sample string 47", "register_city": "sample string 48", "bankaccount": "sample string 49", "mobile": "sample string 50", "service_manager_user_id": "c706c62e-07aa-48de-9818-a99638f1f624", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "f65604a9-b5e0-4aaa-ac64-73a3b0abb8a6", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "26a73b50-6c0a-46e8-a45f-fd5d875bf2dd", "account_manager_user_code": "sample string 56", "company_status_id": "b80fa347-e103-4da5-b85d-f2671ed2e7b0", "invoice_email_to": "sample string 58", "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00", "id2": 60 }, "db_language_id": "b8b84ab2-b902-4a4d-9fe3-856e5e40f3c5", "db_language_code": "sample string 7", "db_title_id": "590249be-547d-4f7e-ba8f-cec1a7c6b2b3", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2024-04-19T21:22:48.4273861+00:00", "create_date": "2024-04-19T21:22:48.4273861+00:00", "phone": "sample string 16", "mobile": "sample string 17", "email": "sample string 18", "skype": "sample string 19", "private_phone": "sample string 20", "private_mobile": "sample string 21", "private_email": "sample string 22", "reference_back_office": "sample string 23", "modified_dateutc": "2024-04-19T21:22:48.4273861+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.