WebAPI - Creating a request

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 partido",
        "remarks""O vidro do monitor 01 está partido",
        "assetType"2,
        "equipment""ATC01",
        "tool"null,
        "location"null,
        "assetRoute"null,
        "party""0015",
        "parentLocation""FA",
        "currency""EUR",
        "requestReason"null,
        "requestType""CURATIVA",
        "priorityLevel""MEDIO",
        "company""DEMO",
        "operatingState"null
    }

This method allows to create a request according to the parameters filled in:
  1. RequestKey: The request key. If this parameter is not filled in, it assumes the defined sequential number. 
  2. Description: Short description of the request. This field is mandatory.
  3. AssetType: Asset type. (1- Location. 2- Equipment. 3- Tool.) Mandatory field.
  4. Equipment: The equipment key.
  5. Tool: The tool's key.
  6. Location: The location's key.
  7. AssetRoute: The route's key.
  8. Party: The entity key.
  9. ParentLocation: The asset parent location's key.
  10. Currency: The currency's key.
  11. RequestReason: The request reason key.
  12. RequestType: The key of the request type. This field is mandatory.
  13. Company: The company's key. This field is mandatory.
  14. OperatingState: The key of the operating state.
When this method is executed successfully, it returns HttpStatusCode.OK.


Note: Possibility to create a request with no asset, if the request type allows it.

Example of parameters:

       ...

      "assetType": 0,

        "equipment"null,

        "tool"null,

        "location"null,

        "assetRoute"null,

        "parentLocation"null,

         ...




    • Related Articles

    • 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 request reason

      This method allows to create a request reason in a simplified manner. The method to be used when creating a request reason: POST url/api/mytenant/myorganization/requests/requestreasons Json example for creating a request reason:    1.         { ...
    • WebAPI - Creating a requisition type

      This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition:  ...
    • WebAPI - Creating a type of request

      This method allows to create a type of request in a simplified manner. The method to be used when creating a type of request: POST url/api/mytenant/myorganization/requests/requestTypes Json example for creating a type of request: { ...
    • 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", ...