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": "fca904de-05d8-4560-8474-b3c456ecc955",
  "_parent_id": "74e6f3a8-ea84-4c48-a0db-e30e8b529a51",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "2338acce-dd01-4d60-b380-89aceace8d3e",
  "company_id": "1c4492ac-fea0-461a-a39e-3ab2cf991be8",
  "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": "2ac98a58-2c1a-4eb3-870e-e7b978a1f6dc",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "16c83d1f-0bdc-40ba-af96-964985864210",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "47f2e5ed-bd36-4d21-a108-e44f1a1eb893",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "8c8c5a9d-48da-45ad-b167-8292b6a6036c",
    "company_code": "sample string 5",
    "company": {
      "id": "42108bb5-c6f5-4bb6-a61f-c621b69b4e25",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-10-17T09:52:42.3205466+00:00",
      "sales_territory_id": "b508b9f5-5366-458e-b79d-aa210f7e64f6",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "ce5623bb-144b-4fd1-b913-a1871c3f6bdc",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "5444f7fb-af14-4b6c-a00b-c0f4a5846f95",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "52f8191c-2568-4f82-ab5c-794ee7f159e8",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "8aadd93d-1059-4baf-b23a-7fe8f37622b1",
          "db_currency_id": "c8d18331-c994-485a-9adf-702bda22e1cf",
          "db_language_id": "332c11ea-3dfe-4be5-8d1a-19b7cd95b1b3",
          "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-10-17T09:52:42.3205466+00:00"
        },
        "modified_dateutc": "2026-10-17T09:52:42.3205466+00:00"
      },
      "marketing_segment_id": "907db405-2e26-4f54-b9a1-bd525137e4c2",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "cd9b6a1a-ca79-4340-999e-454f18d38c01",
      "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": "684259fd-8377-4aa1-bba7-0680371dc517",
      "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": "da1c8770-cb89-4d5e-b9cd-65dded30f7d6",
      "db_country_code": "sample string 28",
      "feelist_id": "927b71a5-4f12-4fa9-9f23-719f8b32b737",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "84d186a4-97c5-45c5-b58b-4ff45858d64c",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "e879d46f-55f0-475e-be70-74edd86fdbab",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-10-17T09:52:42.3205466+00:00",
        "db_currency_id": "05f70184-9a69-4d8d-9297-dd55256a0501",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "8eaf1fb9-3650-495d-bf5f-ac85103dec6a",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "ce7fb8a0-67be-4b4d-980a-9407d8265011",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "4d018b20-b813-4072-a393-8f065d00426e",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "d5031aaf-5fc5-4cb0-b677-1558e4afe483",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "976e6ff2-3465-49c4-bd21-d9db90891423",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "000c5376-603b-4855-b727-a4f741bf1d9e",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "a1717b23-154f-41b0-ab3d-835d7ed83a4f",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-10-17T09:52:42.3205466+00:00"
      },
      "company_sector_id": "09326797-b232-4c79-b8ec-a9d668322c2b",
      "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": "558b4ee5-6a5e-4097-bab6-32494a6f3cc2",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "46310b48-6a66-427c-a25d-259e62572805",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "3bada0d1-df7a-4943-8600-ced946785bb2",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "f80ee9ae-d466-4d66-adc7-1b1e0fbfea1c",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-10-17T09:52:42.3205466+00:00",
      "id2": 60
    },
    "db_language_id": "f25080d3-5062-4dda-a9c8-a5951c00a0db",
    "db_language_code": "sample string 7",
    "db_title_id": "705e9961-3b9c-4030-ad89-c5b27a4560e5",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-10-17T09:52:42.3205466+00:00",
    "create_date": "2026-10-17T09:52:42.3205466+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-10-17T09:52:42.3205466+00:00"
  },
  "modified_dateutc": "2026-10-17T09:52:42.3205466+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.