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": "fb6dcc07-767f-45ae-a4f3-2eecff6ffc23",
  "_parent_id": "352a3a4a-57c5-4051-ab64-fce434c60cdf",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "dfe4598f-8457-4c04-b66e-4d573806b2ff",
  "company_id": "e84bdfd4-fa41-49a9-a4db-9f536b86bed4",
  "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": "2fe8a3d8-cbb1-40f0-a02c-e7e78a5d7ec2",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "702ac71d-e40d-41fe-ad4a-16a389bad08f",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "f96ec492-694f-438a-ac69-e46c77d73888",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "045bbaa6-9f46-4491-970b-bd53c1251292",
    "company_code": "sample string 5",
    "company": {
      "id": "27327ffb-a80e-4a29-9b5b-e475ce676833",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2023-03-31T22:04:38.2812251+00:00",
      "sales_territory_id": "5ee0979b-6e5e-4c7c-92ec-d0b0fad1e0b1",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "135b1d60-3393-4814-9f2f-b4b1748e4509",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "496c5591-1a3b-44f8-9481-d216da10f353",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "baf101cc-60aa-43ce-8af1-9749e327f8e4",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "a2d2d3cb-251f-476e-ac35-ee04f35009dc",
          "db_currency_id": "7ea772c1-92ec-44ea-b430-79da74707581",
          "db_language_id": "1d4e6f2a-5551-4fcc-8e62-9cbacbfa0c5c",
          "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": "2023-03-31T22:04:38.2812251+00:00"
        },
        "modified_dateutc": "2023-03-31T22:04:38.2812251+00:00"
      },
      "marketing_segment_id": "7c59b1bc-aa4f-4edb-a492-9235f5490e75",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "39869262-d625-4571-b1b6-26e8c51effb0",
      "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": "4669e898-32e3-4a68-b14b-94fed9b2f6d3",
      "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": "79dd01a9-a4e4-49e8-a61d-6472fa26ec7f",
      "db_country_code": "sample string 28",
      "feelist_id": "72e5238f-24ac-45e3-a184-aff3162b1b1b",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "4f1957da-85d9-42aa-8628-db788348633d",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "7b8c0a94-c399-460b-ba77-a85894bcceec",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2023-03-31T22:04:38.2812251+00:00"
      },
      "company_type_id": "c7d59f3e-68b6-4458-83e2-2f945a320bd9",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "c5d35364-cf4e-4a22-a09d-d554b7fe63c9",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "b6680aae-d000-43b6-9bbf-e4c821755c89",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "fe4a6804-bf3f-4a15-96dd-f670d920cb0a",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "68347c83-af06-4f0b-887a-7d323dcc6872",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "73a1790e-9ad4-4667-960c-d85baeb4ee31",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "ce1421c9-31c2-4717-a9c5-04aac85735ce",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2023-03-31T22:04:38.2812251+00:00"
      },
      "company_sector_id": "fbbc6a02-8445-4ff6-8560-b005a543049b",
      "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": "2b03e411-ae65-4af6-8be1-79f7fa0dd4f8",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "9e720c1b-58d7-4117-b55a-398a6c98be5e",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "80384887-768b-49d7-a5cb-07ba0d246b2b",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "a5df9537-e18f-4221-b44e-e6330e2b8a6b",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2023-03-31T22:04:38.2812251+00:00",
      "id2": 60
    },
    "db_language_id": "cb5749a3-57d5-4d2e-907f-61e842088ca7",
    "db_language_code": "sample string 7",
    "db_title_id": "3fed8099-aaee-4e91-af48-95823518b38d",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2023-03-31T22:04:38.2812251+00:00",
    "create_date": "2023-03-31T22:04:38.2812251+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": "2023-03-31T22:04:38.2812251+00:00"
  },
  "modified_dateutc": "2023-03-31T22:04:38.2812251+00:00",
  "id2": 22
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.