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": "9c59a9a1-ddbf-474a-aebf-9690c7bf5c5b",
  "_parent_id": "aa6ea69e-9716-46b7-9253-860ccd4d7a4d",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "fc7cfc7d-21da-4b3a-a893-c9d816df5275",
  "company_id": "78538d95-69a3-47e3-bf59-8eaf123f61dc",
  "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": "96e8014b-5b71-407a-b626-27a21e7a4525",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "c7aaa2fc-dc9a-47aa-88b8-18bba5ff6c5e",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "892fa7fc-4906-4ca9-9297-c5af9a9685f3",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "d607a022-a35f-4441-bb86-da10b4f01018",
    "company_code": "sample string 5",
    "company": {
      "id": "3c113c8d-9815-437d-b0c4-0ecb13d4a818",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-10-18T06:36:43.9978443+00:00",
      "sales_territory_id": "d82fc02e-1113-4b9d-b23b-b4fde3bdf3da",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "f75d0aa4-2555-4858-96e0-b422886be542",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d446b548-74c5-4edf-8144-89d8e78c4995",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "cd992252-445f-4bd7-98b9-8113a1c83a5a",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "2b5c1fae-eca9-4236-90e4-3e5169d6d724",
          "db_currency_id": "8c1a1d58-e5cf-4e51-ac69-335fac8284d3",
          "db_language_id": "88ef5b79-e31b-4071-8bc5-5d84f34c0d65",
          "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-10-18T06:36:43.9978443+00:00"
        },
        "modified_dateutc": "2025-10-18T06:36:43.9978443+00:00"
      },
      "marketing_segment_id": "cf4fc750-d821-41ff-9e5a-485c29e6b3df",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "8f8cbef9-81d6-42d2-9bda-d1e77c1ce573",
      "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": "ee29c19d-78d5-4575-86f0-cf296cdc6043",
      "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": "2656c62a-f15f-4f44-a03d-e7ead8ed28f4",
      "db_country_code": "sample string 28",
      "feelist_id": "0cd8aecf-c7c3-481c-93f1-2bbdb1cd099f",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "647400c0-5fc9-4951-a439-96acd9132e70",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "6445331e-a677-43a5-91ba-6e28d652aa32",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-10-18T06:36:43.9978443+00:00",
        "db_currency_id": "3edc9714-f218-45d2-9d48-d57a8c3e2064",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "ed4b62a4-b1a3-447b-b2c2-b40f63a1c506",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "63d84416-9d53-4baf-af85-54b73da2efe1",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "bd38bb3a-4c4e-4d02-9597-1d22c2a2c7ae",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "aff8d81c-6687-45d5-a4c0-ede8834f80f2",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "0e7690da-3152-4038-92c4-633da47c4adc",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "124da06c-c069-4396-97bd-648a8cfb2004",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "268247a7-e118-4751-b457-2f4708523bf2",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-10-18T06:36:43.9978443+00:00"
      },
      "company_sector_id": "c63b66bc-93eb-4884-8401-9e1883ce233b",
      "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": "b18e47ea-b192-44ac-b49e-6475f60b9f28",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "a3d6fffe-c6f0-4513-9cfd-a2dddcfc765a",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "24b20975-6d4c-4fe9-82ad-75be08bc34ed",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "9ce03af0-ccf4-45e9-a06f-d017301c43c8",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-10-18T06:36:43.9978443+00:00",
      "id2": 60
    },
    "db_language_id": "badbd4fc-0b81-4b1f-93f0-6e7e9a1b8bc9",
    "db_language_code": "sample string 7",
    "db_title_id": "736e7bff-523b-47b0-866c-be962052a253",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-10-18T06:36:43.9978443+00:00",
    "create_date": "2025-10-18T06:36:43.9978443+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-10-18T06:36:43.9978443+00:00"
  },
  "modified_dateutc": "2025-10-18T06:36:43.9978443+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.