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": "f452b97c-9fb0-4106-9853-e3d4044d4c89",
  "_parent_id": "c98c71ae-b1fd-4fa1-9a63-6063e2043c85",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "f3eced4d-0a9c-4a51-afb7-4f9304289ae2",
  "company_id": "1cabae1f-4d79-4736-89ff-3b01891d6273",
  "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": "cf0319fc-cc4e-4f8c-a8d4-6e5aef7a6d7f",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "65fb7fb3-7392-4cf5-a154-52473e9246fc",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "165fbc66-8b74-47d0-b771-9bf3ebcf3b24",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "255ff2e5-7fc9-426c-bc02-af0c905742dc",
    "company_code": "sample string 5",
    "company": {
      "id": "6fb70136-e4f3-474a-ac88-26f9bf9a5504",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-03-19T15:30:02.506303+00:00",
      "sales_territory_id": "b5345160-5df0-454d-b69c-8725a72de955",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "f495c63a-9fd7-4ab3-8329-d76d95df2c96",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "fd620ad1-4a4e-4d5c-8378-e80b247e78c1",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "0438bbce-9e7c-4803-b202-be164b50c734",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "962893d8-5d0c-43f6-98f1-c75b158b588a",
          "db_currency_id": "1b7fb45a-c727-46cd-93f2-694944888971",
          "db_language_id": "a954eb8e-b84f-4fdc-8335-3341dc99f731",
          "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-03-19T15:30:02.506303+00:00"
        },
        "modified_dateutc": "2026-03-19T15:30:02.506303+00:00"
      },
      "marketing_segment_id": "6cd3e037-7ea3-40b9-8bcf-c4177600f352",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "8520c9c3-02ce-409f-8d09-603ba4e38ab7",
      "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": "5b69a05e-8db3-400d-93be-11ef526ada59",
      "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": "05ca6cfe-a280-451d-87df-51bb65ea5cc0",
      "db_country_code": "sample string 28",
      "feelist_id": "aadb7f15-fd26-41bf-b20b-79e75f9ca9da",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "3d113b31-2cc4-43f2-8ba3-dd56a7048a5d",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "08343fa7-262b-4a1c-9804-8e9fb60c1128",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-03-19T15:30:02.506303+00:00",
        "db_currency_id": "1a09bed6-adc7-4a0a-be77-eb2060df6995",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "75190cd4-f1d7-4b83-a7c3-e4698187375e",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "385c47df-e00c-4339-b4df-824fcf264487",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "46e7ef57-26a8-4d58-a6ef-9cf23cdb0f5d",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "a6a8211d-3aaa-41e7-99a5-df99382e1f5a",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "d1fcacce-656b-4843-b15c-d35e7c437ece",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "0dd5bd1e-7fa6-4a5a-8c58-3466adaf2533",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "86d19f84-070a-4336-906b-a31522c0ec32",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-03-19T15:30:02.506303+00:00"
      },
      "company_sector_id": "3e6dead1-1d50-4f6a-a166-a2c1d0579486",
      "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": "5c05a9db-1b87-410b-b170-8d73d8286ed9",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "e62c02af-d3ad-4dac-9a10-7945bd225cb0",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "11d3666e-136a-4940-858b-9b0d0e434651",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "4ca07a6c-6ab4-4b8c-bb47-a405133aedf8",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-03-19T15:30:02.506303+00:00",
      "id2": 60
    },
    "db_language_id": "5cb9ead8-ce8c-4ca1-9b5c-96acd7398013",
    "db_language_code": "sample string 7",
    "db_title_id": "bef71006-3a61-400d-ae83-c39a1b0b0d19",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-03-19T15:30:02.506303+00:00",
    "create_date": "2026-03-19T15:30:02.506303+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-03-19T15:30:02.506303+00:00"
  },
  "modified_dateutc": "2026-03-19T15:30:02.506303+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.