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": "a3701095-5e2a-4516-af0a-c4aac09cc729",
  "_parent_id": "63b738ac-a7fe-4abf-8b01-ef20c5327169",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "bdbdd691-63ac-4ab5-abfc-731acf1fb28d",
  "company_id": "bffe1af8-61e4-45a2-83ee-c658b98615a9",
  "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": "cbb0efd9-479e-47ec-a8bf-d99de1019883",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "b003b16e-ac4f-460c-ab28-8d30ebc2d027",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "fd4bd134-f281-4ca8-81d4-887c3aeff59e",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "72d6a411-308d-4900-9560-538ab4841f45",
    "company_code": "sample string 5",
    "company": {
      "id": "82df660f-c3f6-4b40-b6b3-1c08db80bbf6",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-08-14T07:29:06.1389455+00:00",
      "sales_territory_id": "4e249858-9444-4714-a664-eab7a1d793d8",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "25d817a9-90a4-48e0-af14-021de8a08fe8",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "403331a8-5d6b-4c52-9586-8283be497e39",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "4976fe44-463b-4ade-a117-65163c84922c",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "7ff68e5d-04e9-4e73-b18d-77a07a8efb4c",
          "db_currency_id": "e893937c-0a95-49c7-b3c6-72d55ef54ab0",
          "db_language_id": "5ebb50f4-5b1c-4a4d-9a53-c249a5ceffb0",
          "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-08-14T07:29:06.1389455+00:00"
        },
        "modified_dateutc": "2026-08-14T07:29:06.1389455+00:00"
      },
      "marketing_segment_id": "04e9748d-30d0-43e4-a876-7538f0e71ec2",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "9e1cf6b2-ec7b-4c13-a1fa-fd01fd02e158",
      "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": "fa7acbe8-af40-4db0-a2b9-0225d1cf1111",
      "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": "f591a91f-d6e1-45e5-8aa9-a9165fc24731",
      "db_country_code": "sample string 28",
      "feelist_id": "6f8b7e8b-7add-41e0-b3d3-784d5338584e",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "bdbde8d5-2b21-48ce-a441-b71671ba8d00",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "09879306-5aa3-48d2-8a49-dba4f3c33dea",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-08-14T07:29:06.1389455+00:00",
        "db_currency_id": "717412fc-07fa-4932-93e9-cde14153cd8f",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "348841df-5d38-4d72-b09e-681828d16f0e",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "f52bf952-f36a-4567-aec4-a180dac3f1cd",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "5f6722a0-e560-42c6-ac70-2b4724aa86c1",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "05cb53de-27d0-4a71-bbf7-dd3e2b7fcead",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "7c021ad6-3c3c-43f1-909f-2ba867143572",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "a49cf7a4-d033-4bae-a80e-9709266f2f7c",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "bf9a5105-64b6-4170-9502-6ac36022ab01",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-08-14T07:29:06.1389455+00:00"
      },
      "company_sector_id": "c0afab88-8409-44b1-949f-42437867f57c",
      "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": "63fd3096-ee69-418c-a784-b3322b8855cf",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "55958e5f-8038-4ba9-84ff-0aa590cf3964",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "4c705313-a364-4734-8285-2046820a8f69",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "be98e59e-16fd-4739-b9af-63b157a50b93",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-08-14T07:29:06.1389455+00:00",
      "id2": 60
    },
    "db_language_id": "5d79506d-64d8-4d1c-9333-a39834e8c2bf",
    "db_language_code": "sample string 7",
    "db_title_id": "4516fe0a-1499-4577-97c2-a805fcc774ff",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-08-14T07:29:06.1389455+00:00",
    "create_date": "2026-08-14T07:29:06.1389455+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-08-14T07:29:06.1389455+00:00"
  },
  "modified_dateutc": "2026-08-14T07:29:06.1389455+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.