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": "1e2bfc03-7e3e-47d4-ae88-e66acb23f84b",
  "_parent_id": "82446b6b-8f31-49d3-b5d4-5b77f8983c7f",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "84ddd5b4-1d43-49f9-8a98-f4b10db57a21",
  "company_id": "d8792db3-210e-41e9-9c40-0df8927f6b81",
  "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": "abf82258-caf7-4111-9f1d-e7f42e8c9919",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "11300e70-c119-47f1-9cc9-27b379493fde",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "daf67090-6014-468c-99ce-48886527cad2",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "95211930-0b80-498f-acaa-d57f86a3140d",
    "company_code": "sample string 5",
    "company": {
      "id": "91e466fd-ab61-43fd-90bc-f926903389be",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-04-25T15:53:20.2098386+00:00",
      "sales_territory_id": "df8135e2-3092-4c87-ab3a-e6175eaddb8a",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "d5dc070d-ab04-4ad1-9c01-19b15b233c48",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "77d61383-7899-4f1b-bd0d-00183a494465",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "71bd386c-7847-4f54-8654-9bb5a2cf2383",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "73d606bb-6295-4de8-9c2b-8782d4cb2c80",
          "db_currency_id": "3d35f92d-4d11-49b1-b9a4-b534a1a8a350",
          "db_language_id": "7315b175-5b8b-422c-aee7-3e3edcbff735",
          "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-04-25T15:53:20.2098386+00:00"
        },
        "modified_dateutc": "2025-04-25T15:53:20.2098386+00:00"
      },
      "marketing_segment_id": "590be169-6a56-4e22-bc2f-83e6456dfefc",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "0957ec00-2a29-4a95-a575-6d234e0a3b2f",
      "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": "90e97c5d-0532-4670-afc7-8af1891b2983",
      "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": "03be6cc7-5ece-42f3-a31b-1f98c9aafe1f",
      "db_country_code": "sample string 28",
      "feelist_id": "833d829e-8ba6-4885-b970-10e45edc0bbc",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "aea20925-122a-4cd0-8893-270e3c583752",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "ebdec11e-7e61-40e2-aac8-117e6d1f0497",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-04-25T15:53:20.2098386+00:00",
        "db_currency_id": "08d8ac00-e6e9-462b-a694-bb68954ed623",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "4a0d176e-63c4-4f9f-9252-4927aa9c5106",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "d40b6438-b882-4f16-b6bd-84c8f71c7c0f",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "caf5138d-16a5-4847-93df-dfeddcbe3fa9",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "dbe37afc-eb10-4d27-947b-6c3a74c7006e",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "b0741cd2-c5ff-4e2e-b62d-661f43f530f3",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "b891c731-ecf6-4369-9b7b-3dd09ec90fc6",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "ac9579b8-3ee7-4fa3-b540-ae1cdd615876",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-04-25T15:53:20.2098386+00:00"
      },
      "company_sector_id": "d32491be-3acb-4a42-9ad7-4983aa1fe5d2",
      "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": "f63e6e09-4fb4-49ec-a992-619508c591e6",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "6b274462-90a6-477d-ae9b-fe46ea48f5b3",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "63469004-39dc-486f-ae21-b8fc7712c8e9",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "69fd11a7-6941-4470-aba1-ca5c2ec76b79",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-04-25T15:53:20.2098386+00:00",
      "id2": 60
    },
    "db_language_id": "30b403c6-082c-42c4-a808-1ec62fb994e3",
    "db_language_code": "sample string 7",
    "db_title_id": "77af2d0b-a6ca-4dde-942b-96f1d3358d26",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-04-25T15:53:20.2098386+00:00",
    "create_date": "2025-04-25T15:53:20.2098386+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-04-25T15:53:20.2098386+00:00"
  },
  "modified_dateutc": "2025-04-25T15:53:20.2098386+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.