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": "c8540fa5-9f29-4cf6-a787-f599ea7a68ab",
  "_parent_id": "ed19be3f-d5c7-455d-a170-556392b1a05f",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "735ff4da-49c5-46a0-9d42-cfa3fa4a0da2",
  "company_id": "c92b3cc2-059f-49ad-bfbd-ddefeb0e4e62",
  "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": "b9fc1eb2-b1e7-48e4-912e-21be576d4f83",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "9c4d2b31-d06e-476c-ba48-b7eb281af17b",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "92b15589-0543-48af-803d-0a5680089a1d",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "4e00182e-ca85-447c-b77f-45bf85eb723d",
    "company_code": "sample string 5",
    "company": {
      "id": "8e37427e-273d-4ec4-adb4-f55183ec98fd",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2024-07-20T07:21:23.329823+00:00",
      "sales_territory_id": "4b7d3a5b-aac5-455f-a054-11bb16f30b0a",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "cb337fa8-776c-4528-aa41-e24f8ebbf045",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "30113551-a3c1-4700-9e54-e203e9da4646",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "f1e10de1-9ee6-401e-9c7f-3c21903b0313",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "556f2001-ef8b-4265-b7f1-af4312ea0c44",
          "db_currency_id": "e591436f-ae32-49a1-8b2b-3ccfd55a5883",
          "db_language_id": "071f2605-f932-4c2a-80d9-918fdb8a4939",
          "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": "2024-07-20T07:21:23.329823+00:00"
        },
        "modified_dateutc": "2024-07-20T07:21:23.329823+00:00"
      },
      "marketing_segment_id": "161988e8-2e16-4df4-8d60-bdddad3ee8a8",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "52fd43aa-1ca6-420b-a1b4-819c90182af0",
      "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": "13e86be9-0b32-4d3e-a68c-9b79dfba566b",
      "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": "fcdd8ccf-2e43-46d4-9796-0b592fab64eb",
      "db_country_code": "sample string 28",
      "feelist_id": "4c71d284-0422-4fdc-9f33-698d2191ea5b",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "8e0688f2-1c29-4def-85cd-9c1432f27809",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "636fec14-4002-4d0b-b83c-4ae5ba819b78",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2024-07-20T07:21:23.329823+00:00",
        "db_currency_id": "38dad5dd-dfd8-46f0-83a1-540d7e5b182f",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "788b6443-0f65-4910-bd18-bf6a1c999efe",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "d84d9e9f-0d59-4fa1-94b4-61637db42a68",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "aaa4164e-b12d-4c9a-9453-01c0f32b4f4d",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "1fd604ab-9a02-4f9e-ae1d-42a2a4113743",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "1722ed61-2238-495b-9e46-9a2041317722",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "534c82af-2508-4d17-8f1e-33db8872e324",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "d5be2139-74f3-4093-be64-fa332d4ac670",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2024-07-20T07:21:23.329823+00:00"
      },
      "company_sector_id": "4acd30de-c471-416f-a757-da2ad72c09fa",
      "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": "787e294f-d75d-4818-a0ee-0d250e9410fe",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "bf4a161c-53cd-4305-b67c-da9f2d919003",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "b1e399c3-1c84-4e43-b06d-c30762e3f836",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "e1bd10bc-4c48-481b-8623-6b555a1b5ea7",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2024-07-20T07:21:23.3454456+00:00",
      "id2": 60
    },
    "db_language_id": "53741c17-df76-48f0-9d1c-fb23ad0b4358",
    "db_language_code": "sample string 7",
    "db_title_id": "11a90770-3dff-4ef8-ace1-07989e9fc137",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2024-07-20T07:21:23.3454456+00:00",
    "create_date": "2024-07-20T07:21:23.3454456+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": "2024-07-20T07:21:23.3454456+00:00"
  },
  "modified_dateutc": "2024-07-20T07:21:23.3454456+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.