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": "f2c1565a-c9f8-42bb-8a45-34af90affe83",
  "_parent_id": "44c06c4d-97e8-4abb-9e9d-e4923dfbeccc",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "8f893b06-94c0-47a1-adee-790108eb1901",
  "company_id": "9b02333f-cba4-4cf2-8452-f6fd81631ff9",
  "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": "c524acc7-a76a-4e04-8f62-ded940ed7e6f",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "0ac73c1d-85e0-421c-94d4-25463f2d1160",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "cb987eaf-a084-45b8-adf3-4714fcb4895a",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "dd71bfcd-14a4-46cf-875e-5497307d2b12",
    "company_code": "sample string 5",
    "company": {
      "id": "e84e0d17-a8ce-4207-a40a-b7a5cfdbcd75",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-07-15T23:47:41.8708284+00:00",
      "sales_territory_id": "f8247b90-c5eb-4048-a822-74c1be5875e3",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "0e6866c0-0073-4331-9c7b-0209ef901591",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "e0b4233c-56a3-47a9-9c85-c8dfcb43d71f",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "63027113-63ef-4f42-9c5c-2276d673a7f2",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "02a82f10-c286-4b13-9c9e-1313d7fab58b",
          "db_currency_id": "b2585256-4bd4-4540-a375-420cd60d161d",
          "db_language_id": "c356baa2-c4a9-492a-b27f-bf884aeeb18b",
          "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-07-15T23:47:41.8708284+00:00"
        },
        "modified_dateutc": "2026-07-15T23:47:41.8708284+00:00"
      },
      "marketing_segment_id": "77b821fc-27e3-45d3-bc35-81a8f8dab636",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "29ae30da-6a9e-418b-b10c-59eb2e91157a",
      "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": "5252abbf-92fd-442f-aaf6-b4d40d1ff140",
      "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": "d4b89e75-ca2a-42fb-b10f-7c96625d36e8",
      "db_country_code": "sample string 28",
      "feelist_id": "c31c809c-021b-47d3-9830-121f144379ec",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "06e9437b-0e0c-4e08-9799-90a1a8a6614a",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "05fb02eb-2f45-44f4-a7ad-b186d736a5a2",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-07-15T23:47:41.8708284+00:00",
        "db_currency_id": "e06355bc-70a0-486b-a486-32e5ca468b1c",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "e0e68e77-c4ad-48a3-b905-49ceb332ad2b",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "2291c523-a5d9-48ae-8490-a81bb0a0a4b0",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "c51ff7d8-5d22-410f-8f99-5aaf1c8bb82b",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "f2e74537-a62d-4644-9dc7-156b1a70ec74",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "8e387994-32bf-4af6-864b-21714d789e8f",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "d294cbab-2948-4d97-97a1-4139216af981",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "2dbc0911-abed-4005-9a45-058cb8b05ec8",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-07-15T23:47:41.8708284+00:00"
      },
      "company_sector_id": "1ad6b1e2-c1be-4e73-8708-79971efe9fb1",
      "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": "013aa362-6f1a-4747-b43f-e5a6058ed95f",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "75a22564-f897-4867-b1ec-d437a1fec89e",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "b2595aff-5527-4b15-a869-89b83e4443b4",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "3ac08508-3609-4707-a607-8e116151dc02",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-07-15T23:47:41.8708284+00:00",
      "id2": 60
    },
    "db_language_id": "bda1aa85-6001-4f55-8e65-2f401ad118d4",
    "db_language_code": "sample string 7",
    "db_title_id": "40c1b775-0e24-4890-a95e-f623d3dbfec6",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-07-15T23:47:41.8708284+00:00",
    "create_date": "2026-07-15T23:47:41.8708284+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-07-15T23:47:41.8708284+00:00"
  },
  "modified_dateutc": "2026-07-15T23:47:41.8708284+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.