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": "956f0567-9104-43e0-9967-e01f6c138680",
  "_parent_id": "6412883a-973e-446b-a689-8529a1dfade7",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "4793c393-11cd-4f3e-85d0-3b250f7345f2",
  "company_id": "40cf9861-cddc-4e7b-8b70-ac2924d8d1d8",
  "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": "ce951a46-63d4-47ca-9064-4d36552cbf67",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "e7a90f84-7c2f-4d34-9f48-b526e1fc7c22",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "b35b5ae9-3c33-48ae-8bfc-debab0acee46",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "38c6ce02-8350-4139-b40f-2d8c2008ad01",
    "company_code": "sample string 5",
    "company": {
      "id": "aa2c263b-a451-4b36-ace0-a3723aebe2d5",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2022-12-05T06:22:39.0332536+01:00",
      "sales_territory_id": "b9ca0b80-d2a9-47b1-9430-986b0d18e6b3",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "9c51054d-4786-41f4-84ca-021da989fbcc",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "52f7658d-4f35-4af2-833a-d378124c06d6",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "f1d039e9-87ff-4c46-b19b-0fd4bbbed00b",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "3bfaa54f-be73-40b5-a0d8-943f0c2c319e",
          "db_currency_id": "62e11c45-e3d6-415d-9ed9-065637a2eb9e",
          "db_language_id": "6cdec639-0e71-4107-8698-69c5a301482b",
          "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": "2022-12-05T06:22:39.0332536+01:00"
        },
        "modified_dateutc": "2022-12-05T06:22:39.0332536+01:00"
      },
      "marketing_segment_id": "e96ac466-d2d7-418b-a15f-8594c2da790d",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "76cab271-29ab-497f-a877-1f88eff3d547",
      "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": "e20b7b1a-93a2-4d18-a488-ae17bedb7123",
      "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": "ccffc63b-f70f-4e01-9e95-3a7fbe9a4fc6",
      "db_country_code": "sample string 28",
      "feelist_id": "08e6644b-99f4-406b-a1d5-146d8be749ab",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "12b52a16-4799-4c25-aad1-e70216961974",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "8f43ac55-06e8-4af0-831e-cd6f9f8a3bef",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2022-12-05T06:22:39.0332536+01:00"
      },
      "company_type_id": "c3945cd3-8986-45c4-b8cf-bd17e31cb9c9",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "621923de-5197-4606-9dca-4a8cf361ec4c",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "096b918d-eed2-4bb8-8b3b-6f8a6d2477ba",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "73d16cbb-b71f-49ba-8613-099c44668773",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "1b979513-dd3b-4aca-9969-8249efcbeaee",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "1c56d37d-8963-4a8b-9612-e3c59057b3e5",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "9b86776c-140a-40fe-8866-c0fd1e1d94de",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2022-12-05T06:22:39.0332536+01:00"
      },
      "company_sector_id": "09c982c8-8646-46e1-acfe-f65a326c8e9b",
      "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": "7cca6eb5-26a3-4d89-ab61-3b5a9706eeef",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "2f575755-89e7-4f53-91f6-390f9b6de48b",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "a5f29b62-45fe-4458-9e42-156fd102f61a",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "67f28286-fb8d-416d-b1c3-9e4f558cc766",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2022-12-05T06:22:39.0332536+01:00",
      "id2": 60
    },
    "db_language_id": "179f0244-764c-4cb2-aec1-98107f00c3fa",
    "db_language_code": "sample string 7",
    "db_title_id": "b73ff74d-a8c6-4d90-bb64-694fb059b84b",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2022-12-05T06:22:39.0332536+01:00",
    "create_date": "2022-12-05T06:22:39.0332536+01: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": "2022-12-05T06:22:39.0332536+01:00"
  },
  "modified_dateutc": "2022-12-05T06:22:39.0332536+01:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.