Valuekeep Developers - Web API Reference

GET Operations

GET WorkOrderTypes (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See WorkOrderTypeResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /maintenanceCore/workOrderTypes/odata

GET WorkOrderType by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See WorkOrderTypeResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /maintenanceCore/workOrderTypes/{id}

GET WorkOrderType by key

Returns the entity record that matches the specified key.

The following elements are required:

workOrderTypeKey (string) Work Order Type.

Response:

When successful, the response body contains the entity record. See WorkOrderTypeResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /maintenanceCore/workOrderTypes/{workOrderTypeKey}

POST Operations

POST WorkOrderTypes

Creates a new entity record.

The following elements are required:

workOrderTypeResource (ApiWorkOrderTypeResource) The request body should contain the entity record that should be created.
See ApiWorkOrderTypeResource.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiWorkOrderTypeResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /maintenanceCore/workOrderTypes

PUT Operations

PUT Set AssignToTechnicianWhoCreatedWO WorkOrderType

Updates the value of attribute 'AssignToTechnicianWhoCreatedWO' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/assignToTechnicianWhoCreatedWO

PUT Set AssignToWorkOrderResponsible WorkOrderType

Updates the value of attribute 'AssignToWorkOrderResponsible' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/assignToWorkOrderResponsible

PUT Set AssignToWorkshopManagers WorkOrderType

Updates the value of attribute 'AssignToWorkshopManagers' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/assignToWorkshopManagers

PUT Set AssignToWorkshopTechnicians WorkOrderType

Updates the value of attribute 'AssignToWorkshopTechnicians' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/assignToWorkshopTechnicians

PUT Set DefaultMaintenancePlan WorkOrderType

Updates the value of attribute 'DefaultMaintenancePlan' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/defaultMaintenancePlan

PUT Set Description WorkOrderType

Updates the value of attribute 'Description' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/description

PUT Set IsActive WorkOrderType

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/isActive

PUT Set IsDefault WorkOrderType

Updates the value of attribute 'IsDefault' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/isDefault

PUT Set PartAverageCostPricing WorkOrderType

Updates the value of attribute 'PartAverageCostPricing' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/partAverageCostPricing

PUT Set PriorityLevel WorkOrderType

Updates the value of attribute 'PriorityLevel' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/priorityLevel

PUT Set Remarks WorkOrderType

Updates the value of attribute 'Remarks' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/remarks

PUT Set SparePartConsumption WorkOrderType

Updates the value of attribute 'SparePartConsumption' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/sparePartConsumption

PUT Set WorkOrderTypeKey WorkOrderType

Updates the value of attribute 'WorkOrderTypeKey' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/workOrderTypeKey

PUT Set Workshop WorkOrderType

Updates the value of attribute 'Workshop' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/workshop

PUT Set Custom Attribute WorkOrderType

Updates the value of 'CustomAttribute' in the specified entity record.

The following elements are required:

workOrderTypeKey (string) Work Order Type
customAttributeName (string) The custom attribute name.
value (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute.
See ExtensibilityCustomAttributeValueResource.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /maintenanceCore/workOrderTypes/{workOrderTypeKey}/{customAttributeName}

DELETE Operations

DELETE WorkOrderType by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /maintenanceCore/workOrderTypes/{id}

DELETE WorkOrderType by key

Deletes the entity record that matches the specified key.

The following elements are required:

workOrderTypeKey (string) Work Order Type.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /maintenanceCore/workOrderTypes/{workOrderTypeKey}

Resources


ApiWorkOrderTypeResource

The following elements are required:

workOrderTypeKey (string) Work Order Type.
description (string) Description.
assignToTechnicianWhoCreatedWO (bool) Assign to who created the WO.
assignToWorkOrderResponsible (bool) Assign to WO Responsible.
assignToWorkshopManagers (bool) Assign to Workshop Managers.
assignToWorkshopTechnicians (bool) Assign to Workshop Technicians.

The following elements are optional:

isDefault (bool) Is Default.
remarks (string) Remarks.
defaultMaintenancePlan (string) Maintenance Plan.
priorityLevel (string) Priority Level.
workshop (string) Workshop.
sparePartConsumption (bool) Consumption from spare parts.
partAverageCostPricing (bool) Use Average Cost Pricing.


WorkOrderTypeResource

The following elements are required:

workOrderTypeKey (string) Work Order Type.
description (string) Description.
assignToTechnicianWhoCreatedWO (bool) Assign to who created the WO.
assignToWorkOrderResponsible (bool) Assign to WO Responsible.
assignToWorkshopManagers (bool) Assign to Workshop Managers.
assignToWorkshopTechnicians (bool) Assign to Workshop Technicians.

The following elements are optional:

isDefault (bool) Is Default.
remarks (string) Remarks.
defaultMaintenancePlan (string) Maintenance Plan.
(fk) Allowed value: the natural key of a record of type MaintenancePlan. These records are accessibly through the MaintenancePlans service.
priorityLevel (string) Priority Level.
(fk) Allowed value: the natural key of a record of type PriorityLevel. These records are accessibly through the PriorityLevels service.
workshop (string) Workshop.
(fk) Allowed value: the natural key of a record of type Workshop. These records are accessibly through the Workshops service.
sparePartConsumption (bool) Consumption from spare parts.
partAverageCostPricing (bool) Use Average Cost Pricing.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.