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": "43bdb3a0-5ae2-41f1-be83-045998abf9b7",
  "_parent_id": "5e4726a1-1a46-45fc-9b12-067282c27a1a",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "1d172e29-ebd8-433b-bb29-e108748bd8d6",
  "company_id": "a60bb65c-a79a-48e5-8865-a7fe088c3a86",
  "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": "1ada5cc0-c08f-4202-a127-c0a62a0dd837",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "cceb32a5-a1f7-4978-98df-c086761d6b15",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "6d8c90ea-0010-46df-9813-4bac28f44798",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "0ef4a66c-7dd7-41cb-91d5-3d1976b188db",
    "company_code": "sample string 5",
    "company": {
      "id": "e3cba9b5-6a98-473a-9b50-8e2365facca7",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-09-16T19:08:34.5225687+00:00",
      "sales_territory_id": "038aae4c-ec7d-4517-81e4-c4798075844d",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "d487ccd3-fa12-4d0e-a7b4-aea49b199208",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "b3a4c99c-9191-4ce4-8952-84a4100a7a06",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "c53d1719-a99e-4da4-b7ff-2db67e5f45d7",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "b1604915-1ffc-479b-981f-700e8a1c89e0",
          "db_currency_id": "75b957d4-84b8-4706-81f3-551f84704fe5",
          "db_language_id": "936f16e6-3e0c-4bd6-afe7-d537759dd6e9",
          "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-09-16T19:08:34.5381907+00:00"
        },
        "modified_dateutc": "2025-09-16T19:08:34.5381907+00:00"
      },
      "marketing_segment_id": "506b1af9-43fc-46d1-971e-d835c1fd3fe2",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "46b631c2-9e3a-477f-b9dc-db4228cd4689",
      "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": "989788fa-03f8-4fe7-8156-6b421ce34b2f",
      "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": "cc55d51b-6a2d-4cf5-b18e-fbbd4327abc4",
      "db_country_code": "sample string 28",
      "feelist_id": "c70830b9-0e01-4312-b7c6-7ea285513cb0",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "42e37667-13cf-4845-840f-4b14ae66ab4a",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "3a22d237-bc94-4c3b-b57a-25939725f85f",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-09-16T19:08:34.5381907+00:00",
        "db_currency_id": "ccb7fd41-9621-45f9-a024-9f4959ff395a",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "25bd282d-b9a5-4fb6-95d6-81d27c284c67",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "b5fe6d6a-56ed-447c-992c-74fe998105c0",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d55395d5-877e-4d0e-9d6a-8465927e18e3",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "f8abb5d8-f0f1-4d82-81d1-9f2acf961bf2",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "44020bb8-e4fe-4c50-b299-6c42c4f279a0",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "c0d687cb-eed6-4465-b86b-ba120cf3d0fc",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "a99523e9-ff34-45db-8353-015a6b8a79e2",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-09-16T19:08:34.5381907+00:00"
      },
      "company_sector_id": "e178c10f-f0a6-4620-8e6d-440fe731a23e",
      "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": "b40d2c3d-5ebc-47a1-b8ef-1f4d8101ec45",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "5597dbe9-d2d6-49f0-a1ab-92037e574f0f",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "3dabad9a-4cba-420c-92a0-323ee94c32d9",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "2e9cc642-1c78-4cc9-bd12-2c6ce30db06f",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-09-16T19:08:34.5381907+00:00",
      "id2": 60
    },
    "db_language_id": "b983e371-6f95-434e-9cc2-c201cc6207e3",
    "db_language_code": "sample string 7",
    "db_title_id": "9335966e-40a7-4161-af53-841fb7a0c9ff",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-09-16T19:08:34.5381907+00:00",
    "create_date": "2025-09-16T19:08:34.5381907+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-09-16T19:08:34.5381907+00:00"
  },
  "modified_dateutc": "2025-09-16T19:08:34.5381907+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.