Updates the location object

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters :

location
NameDescriptionTypeAdditional information
id

globally unique identifier

Required

_parent_id

Reference to a parent location

globally unique identifier
_parent_reference_back_office

Embedded entity "location" for parent location using ERP PK when adding/updating location

string
_parent_location

Embedded entity "location" for parent location when adding/updating location

location
project_status_id

Foreign key to project_status_id

globally unique identifier
company_id

The company owner of this location

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 location

string

Optionally required : company_id, company_code or company must be provided

company

Embedded entity "company" when adding/updating location

company

Optionally required : company_id, company_code or company must be provided

name

Name of the location

string

Required

Max length: 50

extra_information

extra_information

string

Max length: 255

reference_back_office

The Id/Ref of the back office for this location. Used by Embedded entity

string

Max length: 255

street

Street

string

Max length: 100

street_number

Street number.

string

Max length: 50

zip

Zip code

string

Max length: 50

city

City

string

Max length: 50

phone

Phone number

string

Max length: 50

email

Email address

string

Max length: 250

db_country_id

Foreign key to table Country

globally unique identifier
db_country_code

CountryCode entity using international code when adding/updating company

string
street2

Additional information on the address not part of the postal address

string

Max length: 50

latitude_decimal

Decimal coordonate for the latitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
longitude_decimal

Decimal coordonate for the longitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
contact_id

Foreign key of contact for this location

globally unique identifier
contact_reference_back_office

Foreign key of contact for this location. If you don't know the GUID, use contact_reference_back_office

string
contact

Embedded entity "contact" when adding/updating location

contact
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date
id2

Internal ID (numeric). Will be used if reference_back_office is empty

integer

Request Formats :

application/json, text/json

Sample:
{
  "id": "b6480db2-910f-4340-9715-485292a394df",
  "_parent_id": "9d49f438-5f9f-43ce-9e67-7ff4389a4de8",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "6c96a85b-e773-4d77-b3fb-9da148d15f1f",
  "company_id": "a68f4b3e-7f83-4163-a185-9663dfc2c51a",
  "company_code": "sample string 6",
  "name": "sample string 7",
  "extra_information": "sample string 8",
  "reference_back_office": "sample string 9",
  "street": "sample string 10",
  "street_number": "sample string 11",
  "zip": "sample string 12",
  "city": "sample string 13",
  "phone": "sample string 14",
  "email": "sample string 15",
  "db_country_id": "7f681ee9-6503-417a-b42f-6352247763b9",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "c4b55c73-0ac7-4d34-a7b0-66ae8cf59c53",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "ce3ba3e4-4a72-4c3b-af2f-dbb8a2451e28",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "4316cb08-90f7-45a0-a096-1536e8c204ee",
    "company_code": "sample string 5",
    "company": {
      "id": "11fab87d-a637-4da1-b1c6-6a4691f05866",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-12-25T17:56:43.4624922+00:00",
      "sales_territory_id": "d7f78990-0aa7-4b8e-92f9-5de43244c014",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "389e390d-ff43-48f3-9ef3-14feccafde7c",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "b04b349e-2fd1-4c9d-97c5-c09c73c559eb",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "439512b9-9b96-4221-a7be-9d314f0f300f",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "e916b5e2-7558-4b8b-a3b2-a8cfa980b34d",
          "db_currency_id": "b8f22fc9-7b15-49dd-a436-4b998375d1c7",
          "db_language_id": "a4910a12-1138-461e-83a2-e60c7e1f7d99",
          "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": "2025-12-25T17:56:43.4624922+00:00"
        },
        "modified_dateutc": "2025-12-25T17:56:43.4624922+00:00"
      },
      "marketing_segment_id": "78abb9a8-8ce1-4cc9-939b-a62209d41e59",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "cb908e6c-9bec-44fe-8b93-6fb110d358cd",
      "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": "525d0bcd-de3b-411f-b6cf-e44065a43991",
      "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": "9cc8e88c-bfa1-4308-ace9-d9e59657f034",
      "db_country_code": "sample string 28",
      "feelist_id": "9ce26d68-4915-4d3c-b22b-ef4bf4a81588",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "3f93d133-50ec-4e60-bed3-495baa99e734",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "6224e893-0715-4536-9958-e97bbbb05c8c",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-12-25T17:56:43.4624922+00:00",
        "db_currency_id": "38ec3349-e012-4129-950b-ca5f54fd9367",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "a32e2bde-a293-4475-9ca1-836cfdae5c6f",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "d68cceea-bcee-4a72-932a-cace359fca73",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "2f487112-c371-40c9-a2c2-6428baf49f7a",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "a36ed579-03f0-4013-9d21-c08379da7008",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "0276e41f-1dd4-47ef-ab7b-08a4b6c62289",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "3aecf7a3-1669-4d80-942f-a5ed4bc65fd9",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "71280ba2-32c1-4516-a102-aebf271850d3",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-12-25T17:56:43.4624922+00:00"
      },
      "company_sector_id": "2e1d361d-40db-449b-891c-057450cf6dd0",
      "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": "029ac591-43c6-4a95-8d70-8590002f4aa1",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "09b2fda5-71ab-494a-8895-11b631b2ed49",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "6bf660fe-88f3-4a99-b9e6-9335300473fc",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "e8ebdba8-87e8-490a-9052-7bda4d9d2c82",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-12-25T17:56:43.4624922+00:00",
      "id2": 60
    },
    "db_language_id": "60c36a69-faaa-4fb8-905e-6e27dc3ad104",
    "db_language_code": "sample string 7",
    "db_title_id": "5c1a9107-191a-432d-a00b-2e196381a854",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-12-25T17:56:43.4624922+00:00",
    "create_date": "2025-12-25T17:56:43.4624922+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": "2025-12-25T17:56:43.4624922+00:00"
  },
  "modified_dateutc": "2025-12-25T17:56:43.4624922+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.