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:
{
"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:
- requestTypeKey: The key of the request type. Mandatory field.
- description: Short description of the request type. This field is mandatory.
- remarks: Remarks.
- isDefault: Fill in as true or false, if you wish this type of request by default.
- requesterClosingRequired: Closing by the requester is mandatory. Fil n with true or false.
- generateWO: Generate WO. Fill in this field as true or false, if you wish this type ofrequest to manage or not WOs.
- createWithoutAsset; Fill in this field with true or false, if you wish to create this type ofrequest without an asset.
- maintenancePlan: Maintenance plan key.
- workshop: Workshop key.
- workOrderType: Key the work order type.
- 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: ...