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": "b61dca5f-4fd4-4740-9e99-4261d4d83eda", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "e46661d8-c23d-4d7a-b64a-3625025e1fa4", "company_code": "sample string 5", "company": { "id": "3b2d54b2-a71e-4da5-be68-04fe951ed595", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2023-03-30T21:49:06.0554583+00:00", "sales_territory_id": "c78e76ca-df24-48b0-98e7-977d303af34f", "sales_territory_code": "sample string 9", "sales_territory": { "id": "438015f7-c1db-4f51-9167-e5f421d219f5", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "3b4cc083-71e3-40d9-887b-53ac23aee658", "sales_organization_code": "sample string 5", "sales_organization": { "id": "2f4149e0-65a6-4366-b5ff-c0203051114c", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "a177fd0b-6998-4995-8716-4173022b75b3", "db_currency_id": "b2dd172b-4a1c-45cd-bcbd-52c7e5f0cce2", "db_language_id": "a1afbd7c-382a-497b-9eb9-bba5eb6df1f1", "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": "2023-03-30T21:49:06.0554583+00:00" }, "modified_dateutc": "2023-03-30T21:49:06.0554583+00:00" }, "marketing_segment_id": "f50a92fb-f66c-4f03-83d5-7dc7a217892a", "marketing_segment_code": "sample string 11", "sales_organization_id": "f03b9def-ea54-4e8a-80f2-154858778190", "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": "158b14d5-9702-4934-b83d-76f7b3588879", "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": "146741c1-dfc8-4ee9-916c-0b9180e78fb7", "db_country_code": "sample string 28", "feelist_id": "4f2c8d2b-2e9a-4f83-adb6-38b0afde685a", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "288485eb-8703-4518-a3d1-61c377f74692", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "fe154f48-6052-4829-af19-46f1ef9b1a0a", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2023-03-30T21:49:06.0554583+00:00" }, "company_type_id": "682e35e1-2241-4caa-b3b8-e7f095bdfb0c", "company_type_name": "sample string 32", "company_type": { "id": "c54dbd52-fa64-4cf2-8c48-8618a25e1db5", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "d3de83c9-ff35-4872-af0f-fab68c14d083", "sales_organization_code": "sample string 5" }, "db_language_id": "1f44f49d-59a1-4d8f-a4f6-49b0441d363e", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "578c82fa-3db1-44dd-aa20-8119d613e928", "article_price_label_code": "sample string 37", "db_payment_method_id": "cef24487-8180-4814-94ba-0bf76b651d7f", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "640cea5e-bcbc-4a2a-b678-ac6be28c9d1c", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2023-03-30T21:49:06.0554583+00:00" }, "company_sector_id": "c143e5f0-f4d0-4356-8b10-11fbce34736d", "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": "696733d8-153d-4853-923a-dfcf44431065", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "3eb69db9-264a-453a-b506-89e0281c23e4", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "a9eedb4a-4783-4862-a97b-873289aeeb46", "account_manager_user_code": "sample string 56", "company_status_id": "c336e0f4-821c-4217-96bd-151089c9ba6c", "invoice_email_to": "sample string 58", "modified_dateutc": "2023-03-30T21:49:06.0554583+00:00", "id2": 60 }, "db_language_id": "5da978d9-685d-4947-bb00-0bc579629ecd", "db_language_code": "sample string 7", "db_title_id": "48595ff8-5c2f-4c29-9f1a-a033977a5d7a", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2023-03-30T21:49:06.0554583+00:00", "create_date": "2023-03-30T21:49:06.0554583+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": "2023-03-30T21:49:06.0554583+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.