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:
{
"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:
- LocationKey: The location's key. If this parameter is not filled in, it
assumes the defined sequential number.
- Description: Short description of the location. This field is mandatory.
- OnServiceDate: Date the location entered the service. If this field is not
filled in, the current date is assumed.
- Picture: The location's image.
- Remarks: Location observation.
- Keyword: Short description of the location.
- Barcode: The location's tag.
- ExternalReferenceID: External reference code.
- StreetName: Street.
- BuildingNumber: Building number.
- PostalZone: Postal code.
- CityName: City.
- Telephone: Telephone.
- Mobile: Mobile phone.
- Latitud: Latitude.
- Longitud: Longitude.
- Criticality: The criticality's key.
- LocationFunction: The key of the location function.
- ParentLocation: The parent location's key.
- Country: The country's key.
- Company: The company's key.
- Responsible: The key of the location person in charge.
- Customer: The customer's key.
- 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 ...