Valuekeep Developers - Web API Reference

GET Operations

GET AssetGroups (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 AssetGroupResource.

Response status codes:

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

Resource URL:

GET /settings/assetGroups/odata

GET AssetGroup 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 AssetGroupResource.

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 /settings/assetGroups/{id}

GET AssetGroup by key

Returns the entity record that matches the specified key.

The following elements are required:

assetGroupKey (string) Asset Group.

Response:

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

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 /settings/assetGroups/{assetGroupKey}

POST Operations

POST AssetGroups

Creates a new entity record.

The following elements are required:

assetGroupResource (ApiAssetGroupResource) The request body should contain the entity record that should be created.
See ApiAssetGroupResource.

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

Response status codes:

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

Resource URL:

POST /settings/assetGroups

POST Add Locations by keys

Adds the specified 'Locations' to the 'Asset Group' (by specifying its keys).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record keys to be added.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/locations/add

POST Add Locations by identifiers

Adds the specified 'Locations' to the 'Asset Group' (by specifying its identifiers).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record identifiers to be added.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/locations/addById

POST Remove Locations by keys

Removes the specified 'Locations' to the 'Asset Group' (by specifying its keys).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record keys to be removed.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/locations/remove

POST Remove Locations by identifiers

Removes the specified 'Locations' to the 'Asset Group' (by specifying its identifiers).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record identifiers to be removed.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/locations/removeById

POST Add EquipmentItems by keys

Adds the specified 'EquipmentItems' to the 'Asset Group' (by specifying its keys).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record keys to be added.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/equipmentitems/add

POST Add EquipmentItems by identifiers

Adds the specified 'EquipmentItems' to the 'Asset Group' (by specifying its identifiers).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record identifiers to be added.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/equipmentitems/addById

POST Remove EquipmentItems by keys

Removes the specified 'EquipmentItems' to the 'Asset Group' (by specifying its keys).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record keys to be removed.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/equipmentitems/remove

POST Remove EquipmentItems by identifiers

Removes the specified 'EquipmentItems' to the 'Asset Group' (by specifying its identifiers).

The following elements are required:

assetGroupKey (string) Asset Group.
value (Array of string) A list of record identifiers to be removed.

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:

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

Resource URL:

POST /settings/assetGroups/{assetGroupKey}/equipmentitems/removeById

PUT Operations

PUT Set AssetGroupKey AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
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 /settings/assetGroups/{assetGroupKey}/assetGroupKey

PUT Set Description AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
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 /settings/assetGroups/{assetGroupKey}/description

PUT Set EquipmentItems AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
value (EquipmentItem) 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 /settings/assetGroups/{assetGroupKey}/equipmentItems

PUT Set IsActive AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
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 /settings/assetGroups/{assetGroupKey}/isActive

PUT Set Locations AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
value (Location) 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 /settings/assetGroups/{assetGroupKey}/locations

PUT Set Remarks AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group.
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 /settings/assetGroups/{assetGroupKey}/remarks

PUT Set Custom Attribute AssetGroup

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

The following elements are required:

assetGroupKey (string) Asset Group
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 /settings/assetGroups/{assetGroupKey}/{customAttributeName}

DELETE Operations

DELETE AssetGroup 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 /settings/assetGroups/{id}

DELETE AssetGroup by key

Deletes the entity record that matches the specified key.

The following elements are required:

assetGroupKey (string) Asset Group.

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 /settings/assetGroups/{assetGroupKey}

Resources


ApiAssetGroupResource

The following elements are required:

assetGroupKey (string) Asset Group.
description (string) Description.

The following elements are optional:

remarks (string) Remarks.
locations (Location) Locations.
equipmentItems (EquipmentItem) Equipment Items.


AssetGroupResource

The following elements are required:

assetGroupKey (string) Asset Group.
description (string) Description.

The following elements are optional:

remarks (string) Remarks.
locations (Location) Locations.
equipmentItems (EquipmentItem) Equipment Items.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.