Valuekeep Developers - Web API Reference

GET Operations

GET Families (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 FamilyResource.

Response status codes:

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

Resource URL:

GET /businessCore/families/odata

GET Family 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 FamilyResource.

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 /businessCore/families/{id}

GET Family by key

Returns the entity record that matches the specified key.

The following elements are required:

familyKey (string) The key for the part assortment.

Response:

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

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 /businessCore/families/{familyKey}

POST Operations

POST Families

Creates a new entity record.

The following elements are required:

familyResource (ApiFamilyResource) The request body should contain the entity record that should be created.
See ApiFamilyResource.

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

Response status codes:

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

Resource URL:

POST /businessCore/families

POST Family Characteristic

Inserts a new 'Family Characteristic' in the 'Family'.

The following elements are required:

familyKey (string) The key for the part assortment.
value (ApiFamilyFamilyCharacteristicsResource) The ApiFamilyFamilyCharacteristicsResource instance.
See ApiFamilyFamilyCharacteristicsResource.

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 /businessCore/families/{familyKey}/familyCharacteristics

PUT Operations

PUT Set Characteristic FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/characteristic

PUT Set CharacteristicEnumValue FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/characteristicEnumValue

PUT Set CharacteristicEnumValueId FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
value (Guid) 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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/characteristicEnumValueId

PUT Set CharacteristicValueType FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/characteristicValueType

PUT Set CharacteristicValueTypeValue FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/characteristicValueTypeValue

PUT Set Description Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/description

PUT Set ExternalId Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/externalId

PUT Set ExternalVersion Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/externalVersion

PUT Set FamilyKey Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/familyKey

PUT Set FromApi Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/fromApi

PUT Set IsActive Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/isActive

PUT Set IsExternallyManaged Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/isExternallyManaged

PUT Set ParentFamily Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/parentFamily

PUT Set Remarks Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/remarks

PUT Set Unit FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/unit

PUT Set Value FamilyCharacteristic

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

The following elements are required:

familyKey (string) The key for the part assortment.
lineId (string) The detail identifier.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}/value

PUT Set Custom Attribute Family

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

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/{customAttributeName}

DELETE Operations

DELETE Family Characteristic by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

familyKey (string) The key for the part assortment.
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 /businessCore/families/{familyKey}/familyCharacteristics/{lineId}

DELETE Family 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 /businessCore/families/{id}

DELETE Family by key

Deletes the entity record that matches the specified key.

The following elements are required:

familyKey (string) The key for the part assortment.

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 /businessCore/families/{familyKey}

Resources


ApiFamilyFamilyCharacteristicsResource

The following elements are required:

characteristic (string) Characteristic.

The following elements are optional:

value (string) Value.
characteristicEnumValueId (Guid) Characteristic Enum Value Id.
unit (string) Unit.
characteristicValueType (string) Value Type.
characteristicValueTypeValue (int) Characteristic Value Type Value.
characteristicEnumValue (int) Enum Value.


ApiFamilyResource

The following elements are required:

familyKey (string) The key for the part assortment.
description (string) The description for the part assortment.
isExternallyManaged (bool) A flag indicating if the part assortment is externally managed.
fromApi (bool) From Api.

The following elements are optional:

externalId (string) The part assortment's external identifier.
externalVersion (string) The part assortment's external version.
remarks (string) The remarks for the part assortment.
parentFamily (string) Parent Family.
familyCharacteristics (List of ApiFamilyFamilyCharacteristicsResource) Family Characteristics.
See ApiFamilyFamilyCharacteristicsResource.


FamilyResource

The following elements are required:

familyKey (string) The key for the part assortment.
description (string) The description for the part assortment.
isExternallyManaged (bool) A flag indicating if the part assortment is externally managed.
fromApi (bool) From Api.

The following elements are optional:

externalId (string) The part assortment's external identifier.
externalVersion (string) The part assortment's external version.
remarks (string) The remarks for the part assortment.
parentFamily (string) Parent Family.
(fk) Allowed value: the natural key of a record of type Family. These records are accessibly through the Families service.
familyCharacteristics (List of FamilyCharacteristicResource) Family Characteristics.
See FamilyCharacteristicResource.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.