WebAPI - Creating a location

WebAPI - Creating a location

This method allows to create a location in a simplified manner.

The method to be used when creating a location is:

POST url/api/mytenant/myorganization/assetmanagementcore/locations

Json example for creating a location:

  1. {
            "locationKey""ED",
            "description""Edificio",
            "onServiceDate""2021-07-05T00:00:00",
            "remarks""Criação de uma localização",
            "keyword""Edificio principal",
            "barcode""ED145896",
            "externalReferenceID""125255",
            "streetName""Rua D. Maria",
            "buildingNumber""256",
            "postalZone""4587-653",
            "cityName""Lisboa",
            "telephone""212121212",
            "mobile""858585859",
            "latitud""42.098766",
            "longitud""-8.3567",
            "criticality""0000000001",
            "locationFunction""ED",
            "parentLocation""AM",
            "country""PT",
            "company""DEMO",
            "responsible""0002",
            "customer""0011",
            "supplier""0005"
        }

This method allows to create a location according to the parameters filled in:

  1. LocationKey: The location's key. If this parameter is not filled in, it assumes the defined sequential number. 
  2. Description: Short description of the location. This field is mandatory.
  3. OnServiceDate: Date the location entered the service. If this field is not filled in, the current date is assumed.
  4. Picture: The location's image.
  5. Remarks: Location observation.
  6. Keyword: Short description of the location.
  7. Barcode: The location's tag.
  8. ExternalReferenceID: External reference code.
  9. StreetName: Street.
  10. BuildingNumber: Building number.
  11. PostalZone: Postal code.
  12. CityName: City.
  13. Telephone: Telephone.
  14. Mobile: Mobile phone.
  15. Latitud: Latitude.
  16. Longitud: Longitude.
  17. Criticality: The criticality's key.
  18. LocationFunction: The key of the location function.
  19. ParentLocation: The parent location's key.
  20. Country: The country's key.
  21. Company: The company's key.
  22. Responsible: The key of the location person in charge.
  23. Customer: The customer's key.
  24. Supplier: The supplier's key.

When this method is executed successfully, it returns HttpStatusCode.201 Created




    • Related Articles

    • WebAPI - Creating a request

      This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
    • WebAPI - Creating a warehouse

      This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
    • WebAPI - Creating a tool

      This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1.     {     "equipmentKey": "PCR", ...
    • WebAPI - Creating an equipment

      This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1.       { ...
    • WebAPI – How do I create work orders?

      This method offers a simple way of creating a Work Order for a specific Asset, Location, Tool or Route. The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/newWorkOrderInfo Json example to create ...