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": "cb8d89b9-cfef-40fa-b268-6f30af732e81",
  "_parent_id": "34f98009-db3e-437e-b627-4ee77ab8d93d",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "9115ad29-da3b-4749-ab6b-862ced3602a2",
  "company_id": "4b0160b4-5609-400c-8bae-e0f0ee0f9f1b",
  "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": "77ef0ca8-6749-4efc-a52f-be68eff2ba51",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "4f62a0a2-0603-4d23-a832-d206b3445404",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "36d15ea7-811a-4cdd-b7c0-84969b1f581a",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "7308ac58-8ef4-425e-82d2-37395497be2c",
    "company_code": "sample string 5",
    "company": {
      "id": "407d93c3-2d24-4878-a208-6ab06d317649",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-08-14T07:35:14.4355879+00:00",
      "sales_territory_id": "f546c423-6838-4f0f-8d99-0bdcd1d0af56",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "caa71ffd-9d16-4124-9bc7-58b2e6c497a4",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "c19bc16a-2997-41ca-a26b-7e9f3df5a84b",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "63627719-18a8-4e7f-9625-45801857757c",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "ea613bc3-ec47-444c-a98d-92f70ac8d506",
          "db_currency_id": "43e740bd-883d-493b-85b6-f4e07490d0a0",
          "db_language_id": "fb3e477d-f5f7-4e8c-bb99-a6fff9f436a5",
          "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:35:14.4355879+00:00"
        },
        "modified_dateutc": "2026-08-14T07:35:14.4355879+00:00"
      },
      "marketing_segment_id": "4ce4f8e8-e68c-4064-9606-b5403c6cb3ca",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "f81e9c79-ba3a-4622-b0c6-8ce9902a4371",
      "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": "e144102e-8857-414e-a03d-e01c507c60ff",
      "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": "d6612e23-2fd8-4bda-bda9-a519a6d94a44",
      "db_country_code": "sample string 28",
      "feelist_id": "8b042cbd-a195-4286-94a8-d23072d4ed23",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "472585d6-4bcf-4b5d-b5c2-70c35bde061d",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "85cf5008-7b56-4adf-8b98-2708ae23d26d",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-08-14T07:35:14.4355879+00:00",
        "db_currency_id": "db7c4f42-3037-490e-a79f-a90bb1452fb7",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "2ab10525-5399-456a-b89b-7a707a70a486",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "f1c65a38-ee21-43e4-b69c-526f1a800bae",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "a51b5d02-c618-467f-96f0-27a84fd8bcc6",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "88e104b0-73ef-4a18-819a-2f9a9bfcc4bb",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "73009045-0290-4552-a5a6-26725c534399",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "806c4407-08c9-4f83-8fc2-94136873fcfd",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "e969a07d-e419-4adf-96e5-7f6cd372e461",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-08-14T07:35:14.4355879+00:00"
      },
      "company_sector_id": "4d3cd8bf-c6ae-4d4b-a254-4aea3cd9e97d",
      "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": "a206bc0b-ac57-4e7b-bd7c-ff6d953f7bc0",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "cdc26a79-8450-432a-b8a4-f6395ab482f6",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "eef4dc76-824c-4e23-b0c8-a87ab8ba550d",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "ed95c372-9405-4e3c-8d6c-b76032481b6a",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-08-14T07:35:14.4355879+00:00",
      "id2": 60
    },
    "db_language_id": "ef6b9621-9774-40e2-88bf-696a324c6dc7",
    "db_language_code": "sample string 7",
    "db_title_id": "0bf25cfa-4e67-4e3c-ac3b-f90186ce6fae",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-08-14T07:35:14.4355879+00:00",
    "create_date": "2026-08-14T07:35:14.4355879+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:35:14.4355879+00:00"
  },
  "modified_dateutc": "2026-08-14T07:35:14.4355879+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.