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": "5f3b43c6-8fa5-44c8-a5ec-ab71ac4074ce",
  "_parent_id": "228cffe6-ed22-46d3-9592-24851a5dcbed",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "c94aff2e-c4fa-43f4-a080-13bf7dd47b4e",
  "company_id": "da3448a6-205d-4e2e-ab8d-0be5e091bd50",
  "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": "a24378d3-f3e3-4e65-b8c5-80686e5a8ab6",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "9779608e-e543-4d50-830d-11495bfe1344",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "bf575cee-3e86-4a1f-8fb6-24dc9227a5cd",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "26d821e1-bcf0-40b4-930d-498cf5d962a1",
    "company_code": "sample string 5",
    "company": {
      "id": "bac6ba77-fd6f-4da6-82e3-8d497dbbd3fe",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-10-08T19:25:38.9065364+00:00",
      "sales_territory_id": "cbcf865c-b657-4d92-a825-dbdd56697909",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "4a51be61-b05e-42ae-b85c-02dde924f515",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "57aa1d78-754d-49fb-ab0f-f9777bb4d17a",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "84bc013c-ef28-447b-b9c2-de5cf99118e7",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "2c970d75-3e86-402e-b43f-1a2916ee54fd",
          "db_currency_id": "bb157475-cd70-4a06-9e6b-ccd2a66c6e5e",
          "db_language_id": "b85cffed-5d9e-4d89-af3d-b0aff09d7386",
          "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-10-08T19:25:38.9065364+00:00"
        },
        "modified_dateutc": "2025-10-08T19:25:38.9065364+00:00"
      },
      "marketing_segment_id": "8347a830-11ce-437e-b052-a19145099d99",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "6d6e08a4-0dde-4d4a-8b5f-30c6b6a871db",
      "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": "31ebece4-1932-4b44-b2ed-aa10a94c5b74",
      "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": "63a7dad9-599a-498a-afcb-7169dcb86cb6",
      "db_country_code": "sample string 28",
      "feelist_id": "ccd2e86d-6c94-4149-bc80-026fd1925f28",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "89ed5388-0163-4098-b228-5c2c987de7b8",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "88579676-dc7c-4c3b-adc0-a2ea1bfb6597",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-10-08T19:25:38.9065364+00:00",
        "db_currency_id": "1eb67f63-5c8a-4cbd-b81b-c211acf3f05a",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "1e29d437-3ad9-43af-b74a-9414a8004ac6",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "e88d2d47-2882-4ba5-a2cd-3ad708d273df",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "4589aac7-15d8-42cb-b87e-9e93bf110760",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "b6d5f390-2f0c-41a8-aca4-bd864277f090",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "0ac42ac5-3a78-496f-8b49-23ba1a7b7853",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "fba39d9d-8201-480b-9f5f-eaf9ebe9b496",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "4dd468f5-8630-46c5-9572-12d69a60c200",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-10-08T19:25:38.9065364+00:00"
      },
      "company_sector_id": "59d67092-7b9a-4ac7-b044-9a18a157e42d",
      "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": "2ad0a822-edb6-4352-812f-54ea5a87a933",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "09f4d652-e5a6-4984-a71f-6180a76f7161",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "089d278d-7a73-42bb-b30e-a21d4e1e3941",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "0a7fbaf9-7416-4859-a671-bfcfebc888fb",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-10-08T19:25:38.9065364+00:00",
      "id2": 60
    },
    "db_language_id": "63a9b6d8-3fa7-491f-a10e-c9d71a8c7896",
    "db_language_code": "sample string 7",
    "db_title_id": "00c8fb3b-03b2-4229-8050-b0921eb04963",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-10-08T19:25:38.9065364+00:00",
    "create_date": "2025-10-08T19:25:38.9065364+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-10-08T19:25:38.9065364+00:00"
  },
  "modified_dateutc": "2025-10-08T19:25:38.9065364+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.