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": "6a5c1621-9af8-49d9-b458-08f7c571b39b",
  "_parent_id": "21bcb851-bcfe-4a65-ad9a-0c47a00ac2ec",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "03bd3508-dee2-45c3-9ddf-c58755c87f4c",
  "company_id": "54a4cd15-513a-49cd-86ec-c42547d721f1",
  "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": "c5e41359-fed9-4ecd-945e-7d63b8838188",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "c4f042d0-a229-4e10-b47e-5ea4df26f50f",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "27b3723b-2d15-4f45-b344-2350f498c788",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "2fdc5968-c86c-40a9-8704-979ea94541f2",
    "company_code": "sample string 5",
    "company": {
      "id": "0262f4be-9bfe-452d-b324-6fa144b26ebf",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-08-12T12:44:00.5856176+00:00",
      "sales_territory_id": "8441e76c-9875-4325-8607-ab17312f5667",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "f67df161-e8b4-491b-8fde-1d98e7b129f5",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "301b2c64-b78e-46b6-81c4-1ba725194c85",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "de4f773e-6404-4665-b5f7-feebe90b2005",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "498e0496-d0ab-460a-ab63-395d4558ce78",
          "db_currency_id": "983896fe-8177-4c8c-8ef3-beffcec6f1fb",
          "db_language_id": "cf7627e9-58be-4638-ad26-fd7b28b073bf",
          "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-08-12T12:44:00.5856176+00:00"
        },
        "modified_dateutc": "2025-08-12T12:44:00.5856176+00:00"
      },
      "marketing_segment_id": "e2ef8ad1-55b5-4cca-9d47-956329f8d4a7",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "ce68d04f-3901-405d-818a-948f568da69d",
      "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": "06a82e2c-d8ba-47ab-8c34-222e3f4c1797",
      "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": "a90e4b14-7d0f-4884-bd4b-80699e6891f0",
      "db_country_code": "sample string 28",
      "feelist_id": "28d30630-130b-4e0e-92aa-60e7ca4cc27a",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "6efdec6a-ee57-442a-a7f9-27074ec25e85",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "fe18b788-056b-4544-b764-1eec49144fb8",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-08-12T12:44:00.5856176+00:00",
        "db_currency_id": "456f7311-66c7-4610-a46c-1b2f30736252",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "d53d0fd7-f42e-4fec-a8e2-2723c51c75d1",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "000af79c-753e-43cb-9cc3-c079faf616a1",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "bb3c9e8f-53ed-4875-aa10-f21e87c2ba6d",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "46b4898e-526d-4e99-b526-a5dbc0964fe2",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "f3d56e51-fc97-4bae-9942-0457d3476588",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "00e25038-dd5d-44c0-9d65-a75ed02c5a09",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "a2913bac-8679-49f2-8531-b26a196c544b",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-08-12T12:44:00.5856176+00:00"
      },
      "company_sector_id": "bd5f0fab-d05f-4ad6-b1f7-556e4dc69dfa",
      "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": "1dbd3969-df17-4336-9f55-fcefecf8f751",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "477e3e5a-3ac6-4410-9e1f-e3b87e3d0f3b",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "e62ee79e-ed82-4094-a86c-f4a34c24ed73",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "1de8857a-a258-4141-81ab-6c1fe5d64ddf",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-08-12T12:44:00.5856176+00:00",
      "id2": 60
    },
    "db_language_id": "97963457-ddef-44ac-a28e-e4783b0497b1",
    "db_language_code": "sample string 7",
    "db_title_id": "7f312505-809d-48ff-966b-b8fb0e15460b",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-08-12T12:44:00.5856176+00:00",
    "create_date": "2025-08-12T12:44:00.5856176+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-08-12T12:44:00.5856176+00:00"
  },
  "modified_dateutc": "2025-08-12T12:44:00.5856176+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.