Webapi - Creating a priority level
This
method allows to create a priority level in a simplified manner.
The method
to be used when creating a priority level is:
POST
url/api/mytenant/myorganization/maintenancecore/prioritylevels
Json
example for creating an access level:
{
"priorityLevelKey": "VH",
"description": "Very high",
"remarks": null,
"priorityLevelLines": [
{
"responseTime": 4,
"weekDayMask": 8,
"timeUnit": 2
}
]
}
This
method allows to create a priority level according to the parameters filled in:
- priorityLevelKey: The
key of the priority level. This field is mandatory.
- description:
Short description of the priority level. This field is mandatory.
- remarks:
Remarks.
- priorityLevelLines:
Matches the priority level rows.
- responseTime:
The response time, a number.
- weekDayMask:
The weekday mask. When filled in with 1- Monday; 2- Tuesday, 3- Wednesday; 4-
Thursday; 5- Friday; 6- Saturday; 7- Sunday; 8- Everyday; 9- Weekdays; 10-
Weekend days.
- timeUnit:
Time unit. When filled in with 1- Days; 2- Hours; 3- Minutes.
When this
method is executed successfully, it returns HttpStatusCode.201Created.
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 – 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 ...
WebAPI – How do I update a work order?
This method offers a simplified way of performing changes to the Work orders. The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/updateWorkOrderInfo/{{companyKey}}/{{workOrderKey}} The ...
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: ...