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": "3a9d0342-7b90-44f6-a13d-f06632a4021f",
  "_parent_id": "308d3550-d92d-4ccd-9333-8456b8ba5b87",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "1c12d71a-f7ee-4109-826b-ea2d44861ebd",
  "company_id": "cc899f6a-d1a3-41a4-b5b1-42d6ae59c25b",
  "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": "34c782a6-3626-483b-add3-e936b913d602",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "9bdb998b-24ee-446e-94b5-9609a171f557",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "1b999883-9e9c-4817-9c53-3f8fb80e8a67",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "ef602b46-6ea5-4f4a-973a-43831b2e4acd",
    "company_code": "sample string 5",
    "company": {
      "id": "ee4ab46d-8d1b-4215-9b65-0f6bc94dade4",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2025-02-22T17:52:00.7660107+00:00",
      "sales_territory_id": "00d35625-e044-43ac-bfc5-6064179dc51d",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "bdd0f837-6f91-4d96-b3a3-86dceb5c2c18",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "bf6911e1-db8e-4076-acfd-fb69486da8ae",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "e78cb8a7-7247-4c07-aa56-2ca5d5b40c86",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "eecf90d4-cad9-4d6b-988c-1ecaeae0ee02",
          "db_currency_id": "dacacffb-0712-40f1-b664-51202936490e",
          "db_language_id": "2db2c05f-9330-46dc-9a79-d0284b3112ee",
          "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-02-22T17:52:00.7660107+00:00"
        },
        "modified_dateutc": "2025-02-22T17:52:00.7660107+00:00"
      },
      "marketing_segment_id": "4684f2e8-93f0-4f10-b98e-c3a953c00db3",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "c7e06425-f1e5-437a-994e-300bb1b11da1",
      "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": "ccbcd2b4-851c-4fe2-b0ec-200a5c6d638c",
      "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": "2b057a2a-efb6-4f63-9fe8-e75efe1234ec",
      "db_country_code": "sample string 28",
      "feelist_id": "c5fe33f7-664c-4dbe-b9d6-0ab95ae2b981",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "a775ec86-8a33-4548-8d24-838af2642f1c",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "59b225fa-8995-46e0-8f77-ab7b325d05ba",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2025-02-22T17:52:00.7660107+00:00",
        "db_currency_id": "c30953bf-1ab9-4832-b1a7-de97683c4e4c",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "a780b753-b10b-474d-94e3-8912805814d5",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "fd0d23ed-c7ae-4936-886a-2498cef3bc5a",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "db8084a1-b637-4bbb-8d76-be2744a28e62",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "8750c117-1a73-4f40-ba85-76032a490e94",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "0f0019ca-1414-4d63-99ef-0e373f826486",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "cfa802d0-e0af-45af-8a10-ea7e7330e7c3",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "55541f15-0538-49f3-b72d-bd0c3fc72048",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2025-02-22T17:52:00.7660107+00:00"
      },
      "company_sector_id": "eb2ce33d-6c0c-4812-84b6-472f6222d2b7",
      "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": "02f2a9e7-f25c-465f-a7bb-4da4cfdffad5",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "5c4a0e87-3395-4a07-bb81-fc4f9b550eab",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "60fc12a0-c2d6-4f59-be8b-5d1b175db08f",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "697392c8-cfeb-4262-9e16-48b0559f0cb4",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2025-02-22T17:52:00.7660107+00:00",
      "id2": 60
    },
    "db_language_id": "1bc32ccf-6dda-4fe6-98c0-2bd4ab7dfed6",
    "db_language_code": "sample string 7",
    "db_title_id": "35c744f2-b9d4-48d0-8941-c1733b7a909f",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2025-02-22T17:52:00.7660107+00:00",
    "create_date": "2025-02-22T17:52:00.7660107+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-02-22T17:52:00.7660107+00:00"
  },
  "modified_dateutc": "2025-02-22T17:52:00.7660107+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.