Valuekeep Developers - Web API Reference

GET Operations

GET WOMeterReadings (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 WOMeterReadingResource.

Response status codes:

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

Resource URL:

GET /assetManagement/wOMeterReadings/odata

GET WOMeterReading 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 WOMeterReadingResource.

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 /assetManagement/wOMeterReadings/{id}

GET WOMeterReading by key

Returns the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
wOMeterReadingKey (string) WO Meter Reading.

Response:

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

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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}

POST Operations

POST WOMeterReadings

Creates a new entity record.

The following elements are required:

wOMeterReadingResource (ApiWOMeterReadingResource) The request body should contain the entity record that should be created.
See ApiWOMeterReadingResource.

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

Response status codes:

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

Resource URL:

POST /assetManagement/wOMeterReadings

POST Meter Readings Items

Inserts a new 'Meter Readings Items' in the 'Meter Readings'.

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
companyKey (string) The company key.
value (ApiWOMeterReadingMeterReadingsItemsResource) The ApiWOMeterReadingMeterReadingsItemsResource instance.
See ApiWOMeterReadingMeterReadingsItemsResource.

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 is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems

PUT Operations

PUT Set AllowReportWork WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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.

Resource URL:

PUT /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/allowReportWork

PUT Set Asset WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/asset

PUT Set AssetType WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/assetType

PUT Set CanUpdate WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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.

Resource URL:

PUT /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/canUpdate

PUT Set Company WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/company

PUT Set Date WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
companyKey (string) The company key.
value (DateTimeOffset) 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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/date

PUT Set Equipment WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/equipment

PUT Set IncrementValue WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
companyKey (string) The company key.
value (decimal) 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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/incrementValue

PUT Set IsActive WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/isActive

PUT Set LoadChildMeters WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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.

Resource URL:

PUT /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/loadChildMeters

PUT Set Location WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/location

PUT Set Meter WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/meter

PUT Set MeterReading WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
companyKey (string) The company key.
value (decimal) 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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/meterReading

PUT Set MeterType WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
companyKey (string) The company key.
value (int) 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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/meterType

PUT Set Tool WOMeterReadingItem

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/tool

PUT Set WOMeterReadingKey WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/wOMeterReadingKey

PUT Set WorkOrder WOMeterReading

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

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/workOrder

PUT Set Custom Attribute WOMeterReading

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

The following elements are required:

companyKey (string) The company key.
wOMeterReadingKey (string) WO Meter Reading
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/{customAttributeName}

PUT Set Custom Attribute WOMeterReadingItem

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

The following elements are required:

companyKey (string) The company key.
wOMeterReadingKey (string) WO Meter Reading
lineId (string) The detail identifier.
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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}/{customAttributeName}

DELETE Operations

DELETE Meter Readings Items by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
companyKey (string) The company key.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

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

Resource URL:

DELETE /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}/meterReadingsItems/{lineId}

DELETE WOMeterReading 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 /assetManagement/wOMeterReadings/{id}

DELETE WOMeterReading by key

Deletes the entity record that matches the specified key.

The following elements are required:

companyKey (string) The company key.
wOMeterReadingKey (string) WO Meter Reading.

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 /assetManagement/wOMeterReadings/{companyKey}/{wOMeterReadingKey}

Resources


ApiWOMeterReadingMeterReadingsItemsResource

The following elements are required:

meter (string) Meter.
date (DateTimeOffset) Date.
meterType (int) Meter Type.
canUpdate (bool) Can Update.

The following elements are optional:

incrementValue (decimal) Increment.
meterReading (decimal) Reading.
location (string) Location.
equipment (string) Equipment.
tool (string) Tool.
asset (string) Asset.
assetType (string) Asset Type.


ApiWOMeterReadingResource

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
workOrder (string) Work Order.
loadChildMeters (bool) Load Child Asset Meters.
company (string) Company.
allowReportWork (bool) Allow Report Work.

The following elements are optional:

meterReadingsItems (List of ApiWOMeterReadingMeterReadingsItemsResource) Meter Readings Items.
See ApiWOMeterReadingMeterReadingsItemsResource.


WOMeterReadingResource

The following elements are required:

wOMeterReadingKey (string) WO Meter Reading.
workOrder (string) Work Order.
(fk) Allowed value: the natural key of a record of type WorkOrder. These records are accessibly through the WorkOrders service.
loadChildMeters (bool) Load Child Asset Meters.
company (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.
allowReportWork (bool) Allow Report Work.

The following elements are optional:

meterReadingsItems (List of WOMeterReadingItemResource) Meter Readings Items.
See WOMeterReadingItemResource.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.