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": "4645d62a-b7eb-4f13-bf10-1897cb703bb3",
  "_parent_id": "9caaba71-8641-46b1-9373-18dc5386c2be",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "77c8bc46-f211-4772-8c6e-9e18a22a7fdc",
  "company_id": "da26cdfb-6674-43c3-b99a-3838debc2c84",
  "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": "27b26b2d-e038-4b04-bda4-7a8a973dbc57",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "c8c79dc8-4d83-461d-a5f9-da8493a830b0",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "efe333b2-ffd5-49fd-8e9c-1235d8e6fd57",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "871694e7-5e6e-4682-808a-de1c0124d14f",
    "company_code": "sample string 5",
    "company": {
      "id": "9ee64fae-16f8-4c9e-9b83-3be8b551febf",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-06-03T08:34:21.3428624+00:00",
      "sales_territory_id": "d9280a3e-de36-4ac7-a4fd-a5a9be29b4b2",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "b44fb15b-5767-40ad-82c3-a5cb4cc456ea",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "16a098f3-90f1-4edb-b25b-c7e83e4287c5",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "add3ea78-f05b-4244-bf9a-9876165682da",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "cfefab14-c8cb-4b32-b57d-762d15f79e35",
          "db_currency_id": "e7760886-0210-4181-a2c7-ca769b46d402",
          "db_language_id": "0c2123ce-c6b2-47dd-8d89-99faaa1258d1",
          "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": "2025-06-03T08:34:21.3428624+00:00"
        },
        "modified_dateutc": "2025-06-03T08:34:21.3428624+00:00"
      },
      "marketing_segment_id": "5333981f-053b-4243-9bf5-abbb0d5ad527",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "4439012e-d64c-48c5-aff7-aaaa59ac4d5a",
      "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": "fe13461c-8d11-4602-90b7-42f02ed96253",
      "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": "c5854aa6-cba9-43dc-9ff3-822de302e307",
      "db_country_code": "sample string 28",
      "feelist_id": "dbe4b818-5883-4419-b9cd-b3bb14c16388",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "b60f8b0a-9d54-4bdf-a176-34d1d41e54e5",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "d1a433a8-6039-4843-a918-5d3c2010f2fd",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-06-03T08:34:21.3428624+00:00",
        "db_currency_id": "ff5fe453-f343-4062-88ed-7c7f63628a8c",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "b32ec172-e612-459b-ad3c-a4dfb47e25e1",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "67d9c2fc-82a1-40a7-a1be-59858f2c9ccd",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "d1d2cd6d-e5ac-4f25-b1a6-01cc4951d558",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "4afe8cdf-555a-4df9-bdd7-bbe720e2ad2e",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "e1d9a9bd-cff4-4bbe-87b4-b0ac5f841a78",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "0cacb6b1-d751-40b1-9412-8ae6bcb2aed5",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "99f3adc6-d909-4320-b850-f872de55e078",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-06-03T08:34:21.3428624+00:00"
      },
      "company_sector_id": "dcfe11ab-8b11-4074-a46c-0f2e2ef15932",
      "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": "01135b3c-6fb6-4ef4-89d6-8e2e58ad2313",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "dd096635-4122-4a94-ad66-235075eac9f1",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "78029c91-e257-461c-9a94-56c58e7363cd",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "a9e053f0-ef1b-4a1e-a030-8987fea35dba",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-06-03T08:34:21.3428624+00:00",
      "id2": 60
    },
    "db_language_id": "9a57a51e-4ecd-41a4-a143-17e8082c4d76",
    "db_language_code": "sample string 7",
    "db_title_id": "743f13d3-cd1d-463f-9059-622eda96d899",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-06-03T08:34:21.3428624+00:00",
    "create_date": "2025-06-03T08:34:21.3428624+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": "2025-06-03T08:34:21.3428624+00:00"
  },
  "modified_dateutc": "2025-06-03T08:34:21.3428624+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.