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": "5eb1c63a-c10d-4377-97dd-0367a9900048",
  "_parent_id": "df1aac9c-1373-4fe8-821f-78a82e3235e4",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "e6a32e69-aab9-49e0-90f5-bd59494d4768",
  "company_id": "945182fe-f540-4d55-bab3-cdb0e4f67484",
  "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": "34a14c20-2b34-4d80-8870-51ddb416c2f7",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "646ef7ff-123f-487d-8397-65919050a5d7",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "aa64c49f-f306-4083-95b2-12555740a999",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "28f4f67d-27ed-489c-b26a-7d6ffc9bf961",
    "company_code": "sample string 5",
    "company": {
      "id": "e728201b-6f30-42bb-b58c-ac0ea3f34a59",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-06-12T06:27:44.2710235+00:00",
      "sales_territory_id": "03353a1a-2a86-46e8-b2b5-1e84c8c4d3b2",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "295ee23b-2f80-43d0-a0d9-67304cef33a1",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "2818c307-b3de-4019-bebd-ff365a1893b7",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "812eb55a-a956-4ce2-baf8-df893bc89b0b",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "b917ce50-910a-4426-b267-0a1295b323bf",
          "db_currency_id": "c7849715-e8be-4490-b438-e53c5fd3e05f",
          "db_language_id": "77fbee42-d0cf-4a77-bbc3-da0373101aad",
          "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": "2026-06-12T06:27:44.2710235+00:00"
        },
        "modified_dateutc": "2026-06-12T06:27:44.2710235+00:00"
      },
      "marketing_segment_id": "31416324-ca89-4f55-9ee7-11c84708079e",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "c7fa1fec-d9ea-4f23-ab0b-a25ae888d98d",
      "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": "07403255-4677-4adf-b06a-fd99890fc8bb",
      "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": "e151b10f-905e-4bdc-924a-27d3ca751f1e",
      "db_country_code": "sample string 28",
      "feelist_id": "adc27c63-df42-4317-a65f-e808cfc29e2c",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "1845e3b6-e07a-40a4-9c72-bc903110660e",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "4d39de63-72a2-4381-bdf0-d4453b99a8d4",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-06-12T06:27:44.2710235+00:00",
        "db_currency_id": "97c0a7a9-ad0e-463d-91be-38a54480aa88",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "43c36ebf-35a9-483f-a9d0-ccaf3fd83cea",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "2ecdc6fc-f427-4356-8ca7-22cbe7d21017",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "0cfe2299-2f73-45d9-8868-0ed5742e1221",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "4bfe31b8-8145-4bda-ba5e-827e6f2fcb51",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "8a98c28c-a612-4f39-bec6-b2a8d457f68b",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "6d406cd9-9e44-4b4a-bd24-9f9666a81911",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "1636b35a-0a72-4198-9cb8-18cd5428a544",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-06-12T06:27:44.2710235+00:00"
      },
      "company_sector_id": "c4cc32f1-8a4b-4f00-98da-f34b1c066ea5",
      "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": "169ebe4e-249b-4b2a-8559-2432cd16c5b4",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "58c6af5d-6cff-4473-bad0-a46670633ee9",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "0151128b-bcd2-47b2-9fca-6ea41f8b6b96",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "fd15f79a-a5a0-460b-952f-96e265381e9a",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-06-12T06:27:44.2710235+00:00",
      "id2": 60
    },
    "db_language_id": "34c8c0ee-0447-4680-a8ac-fa7fb146114c",
    "db_language_code": "sample string 7",
    "db_title_id": "39bc02ed-79b2-494c-9e2e-4149c71089ae",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-06-12T06:27:44.2710235+00:00",
    "create_date": "2026-06-12T06:27:44.2710235+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": "2026-06-12T06:27:44.2710235+00:00"
  },
  "modified_dateutc": "2026-06-12T06:27:44.2710235+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.