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": "de3880e4-ff06-4c8f-a8ee-df96157976f4",
  "_parent_id": "142bf513-eab6-406a-b7cc-5cb477e4a950",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "2272ec89-1188-4b16-803a-82bcec90e108",
  "company_id": "6493624f-e32a-4c09-92e5-51954c3e6706",
  "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": "07971418-d5dc-4c7a-8c22-ddc50337f691",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "6bfffd91-e167-4227-800e-e5e98a9bb947",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "b5799525-5fae-4468-810a-9dcc300dc3db",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "c7194417-356c-4723-809b-824fb95f5097",
    "company_code": "sample string 5",
    "company": {
      "id": "7b07523a-c5ca-4e27-b41b-3b6da433e54d",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-01-18T06:07:59.5538368+00:00",
      "sales_territory_id": "34004f28-14eb-4a07-9708-74a0d17fa457",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "41f4be80-0e27-4b7d-ad27-0977728d2b6d",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "6afc34c1-e215-4541-9ef0-e6da865d9f7f",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "ef1ef6af-0fd2-4ee9-bd5d-39b28f083281",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "41954cee-6915-4f7a-b4e8-9e46494f3f19",
          "db_currency_id": "8ef1d5a0-4785-4d7f-9a54-8781d8b32285",
          "db_language_id": "1da6e876-65ee-4170-a792-4705962bd2fe",
          "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-18T06:07:59.5538368+00:00"
        },
        "modified_dateutc": "2026-01-18T06:07:59.5538368+00:00"
      },
      "marketing_segment_id": "1e65848f-ccc5-492b-be1b-93ee470b7bc8",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "013cee5f-238c-4a83-9711-cf91a4df2f3d",
      "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": "a7f3d2db-5564-4492-8509-c5a0f4309b68",
      "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": "2ba0720d-e39c-45ea-981b-b0733d4cb623",
      "db_country_code": "sample string 28",
      "feelist_id": "d296105b-814b-4e75-ac05-8de8b7a17b31",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "55eed4d6-0844-4938-bb48-5a8512a34e9a",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "48e7857b-1428-4842-8ca9-4d2a72d0d901",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-01-18T06:07:59.5538368+00:00",
        "db_currency_id": "47d3f1b5-8943-4948-bde0-e79c41150b17",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "c51e48c9-94cd-432b-9eb0-127ab2599fd1",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "8b1cf27a-ae8d-4bde-84f4-c8238ff3217a",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d3971f53-5410-4c8c-8449-7f255aa549ae",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "55295547-d6b7-4e7b-92b7-d06397a9a607",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "a399ccdb-4937-4c7a-b8f0-ba22d8a6c193",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "d5900867-00d0-4b8f-8b8b-28e5d05e378e",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "3b822f95-2e0b-4324-86ce-148a60bab1bb",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-01-18T06:07:59.5538368+00:00"
      },
      "company_sector_id": "8c3afbff-2975-4275-ae88-e0cfd2b1d228",
      "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": "dcc067a4-4491-4ab1-b6fb-ae083bf4d793",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "25f37868-ea69-499b-9d1e-9268c2f5ccf3",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "8edf1f3d-770d-44e5-ad1c-5da689c32c97",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "95ac767b-99fa-453e-9dde-eca11ded10e1",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-01-18T06:07:59.5538368+00:00",
      "id2": 60
    },
    "db_language_id": "1767b1a7-60cb-43a4-a69e-4e2bdf92efae",
    "db_language_code": "sample string 7",
    "db_title_id": "83ff34ed-ce3e-4b7d-9288-158d17daa921",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-01-18T06:07:59.5538368+00:00",
    "create_date": "2026-01-18T06:07:59.5538368+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-18T06:07:59.5538368+00:00"
  },
  "modified_dateutc": "2026-01-18T06:07:59.5538368+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.