WebAPI - Creating a type of request

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:
  1. {
            "requestTypeKey""IN",
            "description""Incidente",
            "remarks"null,
            "isDefault"false,
            "requesterClosingRequired"false,
            "generateWO"false,
    "createWithoutAsset"false,
            "maintenancePlan"null,
            "workshop""MN",
            "workOrderType""MR",
            "priorityLevel""N"
    }

This method allows to create a type of request according to the parameters filled in:
  1. requestTypeKey: The key of the request type. Mandatory field.
  2. description: Short description of the request type. This field is mandatory.
  3. remarks: Remarks.
  4. isDefault: Fill in as true or false, if you wish this type of request by default.
  5. requesterClosingRequired: Closing by the requester is mandatory. Fil n with true or false.
  6. generateWO: Generate WO. Fill in this field as true or false, if you wish this type ofrequest to manage or not WOs.
  7. createWithoutAsset; Fill in this field with true or false, if you wish to create this type ofrequest without an asset.
  8. maintenancePlan: Maintenance plan key.
  9. workshop: Workshop key.
  10. workOrderType: Key the work order type.
  11. priorityLevel: Priority level key.


GenerateWOand CreateWithoutAsset cannot be combined, only one of them can be selected.

When thismethod is executed successfully, it returns HttpStatusCode.OK.



    • 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 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 - How to create a part of the service type?

      This method allows to create a part of the service type in a simplified manner. The method to be used to create a part of the service type is: POST url/api/mytenant/myorganization/businesscore/parts Json example to create a part of the service type: ...
    • 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 requisition type

      This method allows to create a type of requisition in a simplified manner. The method to be used to create a requisition type is: POSTurl/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition: ...