Valuekeep Developers - Web API Reference

Work | Work Order Route Tool

Service to manage entities of type 'WorkOrderRouteTool'.

Overview


URL api/{tenantKey}/{orgKey}/maintenance/workOrderRouteTools
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

GET Operations

GET WorkOrderRouteTools (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 WorkOrderRouteToolResource.

Response status codes:

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

Resource URL:

GET /maintenance/workOrderRouteTools/odata

GET WorkOrderRouteTool 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 WorkOrderRouteToolResource.

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 /maintenance/workOrderRouteTools/{id}

GET WorkOrderRouteTool by key

Returns the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
workOrder (string) Work Order.
tool (string) Tool.

Response:

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

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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}

POST Operations

POST WorkOrderRouteTools

Creates a new entity record.

The following elements are required:

workOrderRouteToolResource (ApiWorkOrderRouteToolResource) The request body should contain the entity record that should be created.
See ApiWorkOrderRouteToolResource.

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 ApiWorkOrderRouteToolResource.

Response status codes:

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

Resource URL:

POST /maintenance/workOrderRouteTools

PUT Operations

PUT Set Company WorkOrderRouteTool

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

The following elements are required:

workOrder (string) Work Order.
tool (string) Tool.
companyKey (string) The company key.
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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}/company

PUT Set IsActive WorkOrderRouteTool

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

The following elements are required:

workOrder (string) Work Order.
tool (string) Tool.
companyKey (string) The company key.
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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}/isActive

PUT Set Tool WorkOrderRouteTool

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

The following elements are required:

workOrder (string) Work Order.
tool (string) Tool.
companyKey (string) The company key.
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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}/tool

PUT Set WorkOrder WorkOrderRouteTool

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

The following elements are required:

workOrder (string) Work Order.
tool (string) Tool.
companyKey (string) The company key.
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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}/workOrder

PUT Set Custom Attribute WorkOrderRouteTool

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

The following elements are required:

companyKey (string) The company key.
workOrder (string) Work Order
tool (string) Tool
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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}/{customAttributeName}

DELETE Operations

DELETE WorkOrderRouteTool 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 /maintenance/workOrderRouteTools/{id}

DELETE WorkOrderRouteTool by key

Deletes the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
workOrder (string) Work Order.
tool (string) Tool.

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 /maintenance/workOrderRouteTools/{companyKey}/{workOrder}/{tool}

Resources


ApiWorkOrderRouteToolResource

The following elements are required:

workOrder (string) Work Order.
tool (string) Tool.
company (string) Company.


WorkOrderRouteToolResource

The following elements are required:

workOrder (string) Work Order.
(fk) Allowed value: the natural key of a record of type WorkOrder. These records are accessibly through the WorkOrders service.
tool (string) Tool.
(fk) Allowed value: the natural key of a record of type EquipmentItem. These records are accessibly through the EquipmentItems service.
company (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.