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": "e6087b37-17c0-4e87-a875-27733073ab4a",
  "_parent_id": "eea02f2f-a12c-40a9-aa9b-cb7dc575fc73",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "37c84efe-147a-4139-83e7-7edd86d94e82",
  "company_id": "794a20bc-4058-4d3c-b4ef-8fe0e8e42f3f",
  "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": "c294b6bb-c0e4-4ccb-a803-ffa45be673f8",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "1dc6c043-eb73-4291-a6cd-ba9e3e986f5f",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "ff1ec016-894c-415e-a2c2-dd1134bb8028",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "e7a5c724-0f2d-4aa6-aa3c-bd0a95be071f",
    "company_code": "sample string 5",
    "company": {
      "id": "aaf83668-96e6-4cf4-9794-bb0c9ca2b1a0",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-08-08T04:57:28.0849887+00:00",
      "sales_territory_id": "10cd1372-3f60-439e-92d6-0ea4db67fde5",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "52136c30-4b6c-48ca-9aac-02edd25064d8",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d1641b8e-dce3-47ac-8913-ba0fe9eb50a1",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "8cedea4b-1934-4dc0-89a4-dbdf987807cb",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "72c6423a-6416-4e25-9794-3638ba3e8e4e",
          "db_currency_id": "dfed5889-fa15-4e42-9db6-6d4d3165a666",
          "db_language_id": "dcda9152-a7f5-41dc-9127-3faf7c188ed6",
          "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-08T04:57:28.0849887+00:00"
        },
        "modified_dateutc": "2026-08-08T04:57:28.0849887+00:00"
      },
      "marketing_segment_id": "c788c505-7f3c-4bad-8d8e-333d533db3bc",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "18f30872-f38e-4c91-9643-59ecbb72a940",
      "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": "a74f316a-16cb-4dd4-b98d-b5b2af6179f4",
      "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": "d60bfe1f-15ce-4bde-b629-9f4b86872c76",
      "db_country_code": "sample string 28",
      "feelist_id": "55bc7773-bfb6-40c4-b94d-1a7dbe0abc1c",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "09498f50-114a-4c07-b7cb-48e1783dd957",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "4b4b28ef-8fbe-4695-91f2-ccb9097b90e0",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-08-08T04:57:28.0849887+00:00",
        "db_currency_id": "a3cf519e-54c9-4847-9b33-19c019ecb30a",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "5d1cc797-b676-4893-86b7-7a56491114f0",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "4a6afe13-9678-4f4c-80a5-aa96e53a0e66",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "a26cd946-f40d-43c5-9abe-68bbda010aaa",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "f3103ab5-ccce-4a1d-8545-0d1d900b212c",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "d22fd914-88b3-4820-ba00-8ed0c353a18d",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "429fc805-731a-43b8-a95b-fe32bb5a20e1",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "5dada810-c994-400e-b8a3-9b74d112db9a",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-08-08T04:57:28.0849887+00:00"
      },
      "company_sector_id": "64b8858e-cb7f-4dae-bfd0-2de6334ec05e",
      "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": "d68f5b0c-6e11-4d08-819e-da142d0aa149",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "5c38f145-7590-4aa5-a2da-7e45746fbe96",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "3edd85f6-5486-421a-9886-9358d1701fba",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "8f2bc571-f640-4160-bfd6-7fd7b485c437",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-08-08T04:57:28.0849887+00:00",
      "id2": 60
    },
    "db_language_id": "534a17e2-e01c-4523-bbfb-8949854f044a",
    "db_language_code": "sample string 7",
    "db_title_id": "8476f651-3907-4974-8d5c-5916c9f8a45e",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-08-08T04:57:28.0849887+00:00",
    "create_date": "2026-08-08T04:57:28.0849887+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-08T04:57:28.0849887+00:00"
  },
  "modified_dateutc": "2026-08-08T04:57:28.0849887+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.