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": "b32e3500-7415-40eb-ba7a-fe00de6e16ed",
  "_parent_id": "aaed2759-0f59-4c5d-8ef4-27a79a599ac6",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "6ae54dd7-2cbf-4b14-ae30-03766c6b532b",
  "company_id": "a83f2b0c-d1b9-4f9b-84ab-7a47bebe5f6b",
  "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": "3c0c06fb-7bc7-42ef-890b-91c55fc47f8e",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "b9914b92-3516-4644-a158-16b59e0ff24c",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "ac3993bc-4a82-4689-af61-132407b3fbbc",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "b22818f4-eb9e-4815-a3b0-6576f51468e3",
    "company_code": "sample string 5",
    "company": {
      "id": "0c2df784-171e-404f-b9e3-44713c6eaf4d",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-01-09T19:44:22.7546258+00:00",
      "sales_territory_id": "86a03e02-d803-468a-af7a-9deabc07182c",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "cdc2313e-4236-43c4-bbf5-f237fd950a59",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "685cd524-e1fa-4e0e-85f5-58ee929121e6",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "8a3c5f94-95b4-41a7-bd5a-b15925d1b1aa",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "b37056ec-ef17-4a18-a3f0-5771c30a1823",
          "db_currency_id": "5afbd386-0cc8-41a0-b0dd-66e2b995b364",
          "db_language_id": "d8c37ea1-3e42-45f2-a79c-04be21fa0a8b",
          "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-01-09T19:44:22.7702523+00:00"
        },
        "modified_dateutc": "2026-01-09T19:44:22.7702523+00:00"
      },
      "marketing_segment_id": "3ed8b80d-2c73-44be-9543-e575fe39b9bb",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "7cc0d950-eb94-4567-a7ef-e7c63835d81c",
      "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": "24b7a476-93e3-4587-aec7-4d9954004e27",
      "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": "3056da23-d308-4ab7-836a-8e60e86f77ac",
      "db_country_code": "sample string 28",
      "feelist_id": "70ca88a2-9177-40c5-a932-3b4d782d9ef5",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "9e5622f7-56ad-4cdb-ae46-135d290299b3",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "50314e34-0773-4d6a-8e5c-714f3b56ec98",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-01-09T19:44:22.7702523+00:00",
        "db_currency_id": "b8d1dcd7-31bc-4001-a365-7bc5fde1ae96",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "6bf28737-ecc9-4902-8e58-afd709bd0865",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "5ff77993-4407-4ea1-b42d-8ca31396fce1",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "1bff81cc-91d4-4eaa-8212-85a107872a0e",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "d9fb403f-f2cb-479e-be94-3331ed9f46ad",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "906f6522-4333-46c2-bd96-bd09264bb712",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "c4262681-16ca-489f-ac8b-9d2deb501118",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "458ff191-914c-4d79-be6c-5ffb5ffc1ab2",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-01-09T19:44:22.7702523+00:00"
      },
      "company_sector_id": "80f41100-0b1f-44de-bb65-4b7827bce331",
      "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": "16949c48-4479-49fb-8f6a-4a2017e11127",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "1a9f99c2-ecbc-4ab6-a092-57481655a475",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "e3ef44ec-4b30-4c1c-a0c5-14580ade91a3",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "520a13f5-a192-47ab-ab10-a425e6456aa2",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-01-09T19:44:22.7702523+00:00",
      "id2": 60
    },
    "db_language_id": "605bd07a-fbd7-4afb-8599-c48af7039821",
    "db_language_code": "sample string 7",
    "db_title_id": "6a795f40-6da5-4fd3-ae5d-42c430222831",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-01-09T19:44:22.7702523+00:00",
    "create_date": "2026-01-09T19:44:22.7702523+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-01-09T19:44:22.7702523+00:00"
  },
  "modified_dateutc": "2026-01-09T19:44:22.7702523+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.