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": "3a6dbedc-bb7d-4480-a80c-83b5fa7a68be",
  "_parent_id": "ae803f59-225f-4272-8185-3cbf9da00c9d",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "3e269161-cb46-4ff3-a9bc-367ae699d8eb",
  "company_id": "3f108a80-e380-4a03-8f26-1ead4a1c0c8f",
  "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": "776b38b8-128f-49a5-a1ab-0c8e78ad8e48",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "b7b576a0-b8b7-4299-aadf-c2045a3e83ca",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "758b888d-4894-4401-b1f6-f714212aa56f",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "52e43250-b500-429f-806c-76b644dcd09b",
    "company_code": "sample string 5",
    "company": {
      "id": "294490c2-2d86-4e21-8165-0d4a3d430a61",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-11-14T12:24:35.9880654+00:00",
      "sales_territory_id": "cfefa75e-a71d-47f4-9d3f-e2390feb1a70",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "a6ec7a3b-2520-4460-9064-a3aca6f9aba9",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "0f72b72c-cfd3-4ed6-865a-fcdebe7dbbf5",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "09ceacff-33c0-4e89-8420-c7eba4d20dc9",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "f7eb4995-4ea4-454d-8f86-820a4aad3d2f",
          "db_currency_id": "376f0297-570b-4b34-bef1-a97e021837f4",
          "db_language_id": "dfc98259-7065-413e-869a-f786eb113919",
          "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-11-14T12:24:35.9880654+00:00"
        },
        "modified_dateutc": "2026-11-14T12:24:35.9880654+00:00"
      },
      "marketing_segment_id": "35274d82-904b-4176-90f2-9f7491942816",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "9a6ed13f-2cd0-405b-95e6-acfafe4dca5d",
      "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": "de7b1de5-f3f4-4a05-9b90-ff26f4e7e6b2",
      "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": "e7079a9b-d021-4b59-999d-f9c464891ab5",
      "db_country_code": "sample string 28",
      "feelist_id": "d3702eef-53dc-4f0f-9fa9-00484b48b406",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "06e8be66-7de1-4310-abb1-f78b53614de8",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "5dc146a7-308d-4b9b-8a3a-8af1a08fa409",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-11-14T12:24:35.9990427+00:00",
        "db_currency_id": "6aad9a39-dfb7-4a94-925f-574abc646576",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "0a4d17db-a727-47c6-9b1c-b8e2e58092da",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "2423103d-e574-45e0-90c5-f5ff0d8d1167",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d81091d9-bc0e-4864-8436-9d27f639ad39",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "5299fc08-3801-4e27-b2df-e86f693688c2",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "4aab9167-5a1c-4be6-8190-6f041aa82d54",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "ffc4bdc8-6439-4f3a-81a8-e8e1268a68f9",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "eeca2b9f-0111-4a94-b19f-3ed9c8e50218",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-11-14T12:24:35.9990427+00:00"
      },
      "company_sector_id": "f59b0754-76bc-409e-90af-7f6524794726",
      "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": "c6d7a8fc-5690-4ec6-a5c4-d7ebe4c6cb08",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "60c737ce-fc46-4bf1-b438-6a443b6aaf5b",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "b44e7eb6-a57e-4e55-8df3-8e1a915f6986",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "23dd66a2-160a-484d-9566-230684a62570",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-11-14T12:24:35.9990427+00:00",
      "id2": 60
    },
    "db_language_id": "f06ad09a-c613-4557-a269-1d514ec6b4f6",
    "db_language_code": "sample string 7",
    "db_title_id": "31e5e677-32e6-4341-9402-c536d933fe51",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-11-14T12:24:35.9990427+00:00",
    "create_date": "2026-11-14T12:24:35.9990427+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-11-14T12:24:35.9990427+00:00"
  },
  "modified_dateutc": "2026-11-14T12:24:35.9990427+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.