Business Core | Part
Service to manage entities of type 'Part'.
Overview
URL | api/{tenantKey}/{orgKey}/businessCore/parts |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute Part
- PUT Set IsActive Part
- PUT Set PartKey Part
- PUT Set Description Part
- PUT Set ComplementaryDescription Part
- PUT Set Keyword Part
- PUT Set Family Part
- PUT Set Barcode Part
- PUT Set Brand Part
- PUT Set Image Part
- PUT Set Remarks Part
- PUT Set BrandModel Part
- PUT Set BaseUnit Part
- PUT Set Supplier Part
- PUT Set PartType Part
- PUT Set Attribute Part
- PUT Set HaveDependents Part
- DELETE:
All Resources
This service uses the following resources:
All Enumerations
This service uses the following enumerations:
GET Parts (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 PartResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Part 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 PartResource. |
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 Part by key
Returns the entity record that matches the specified key.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
Response:
When successful, the response body contains the entity record. See PartResource. |
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 Part Image.
Returns the value of attribute 'Image' of the specified entity record.
The following elements are required:
id | (string) The record identifier. |
fileName | (string) The file name. |
Response:
When successful, the response is a stream with the image file. |
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:
POST Parts
Creates a new entity record.
The following elements are required:
partResource | (ApiPartResource) The request body should contain the entity record that should be created. See ApiPartResource. |
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 ApiPartResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Build Part
Custom operation 'BuildPart'.
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 a resource of type 'PartResource'. See PartResource. |
Resource URL:
POST AddDependent
Custom operation 'AddDependent'.
The following elements are required:
partId | (Guid) PartId. |
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 an item of type 'boolean'. |
Resource URL:
PUT Set Attribute Part
Updates the value of attribute 'Attribute' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Barcode Part
Updates the value of attribute 'Barcode' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set BaseUnit Part
Updates the value of attribute 'BaseUnit' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Brand Part
Updates the value of attribute 'Brand' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set BrandModel Part
Updates the value of attribute 'BrandModel' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set ComplementaryDescription Part
Updates the value of attribute 'ComplementaryDescription' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Description Part
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Family Part
Updates the value of attribute 'Family' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set HaveDependents Part
Updates the value of attribute 'HaveDependents' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Image Part
Updates the value of attribute 'Image' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set IsActive Part
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Keyword Part
Updates the value of attribute 'Keyword' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set PartKey Part
Updates the value of attribute 'PartKey' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set PartType Part
Updates the value of attribute 'PartType' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
value | (enum PartType) The request body should contain the new value for the attribute. See PartType. |
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 Set Remarks Part
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Supplier Part
Updates the value of attribute 'Supplier' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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 Set Custom Attribute Part
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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:
DELETE Part 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 Part by key
Deletes the entity record that matches the specified key.
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
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:
Resources
ApiPartResource
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
description | (string) The description for the part. |
isExternallyManaged | (bool) A flag indicating if the part is externally managed. |
baseUnit | (string) The base unit for the part. |
partType | (enum PartType) The part type for the part.
See PartType. |
haveDependents | (bool) Have Dependents. |
The following elements are optional:
complementaryDescription | (string) The extended description for the part. |
keyword | (string) Keyword. |
family | (string) The assortment for the part. |
barcode | (string) The barcode for the part. |
brand | (string) The brand for the part. |
image | (string) The picture for the part. |
remarks | (string) The remarks for the part. |
externalId | (string) The external identifier for the part. |
externalVersion | (string) The external version for the part. |
brandModel | (string) The brand model for the part. |
supplier | (string) Supplier. |
attribute | (string) Attribute. |
PartResource
The following elements are required:
partKey | (string) The key for the part. Uniquely identifies the part within the organization. |
description | (string) The description for the part. |
isExternallyManaged | (bool) A flag indicating if the part is externally managed. |
baseUnit | (string) The base unit for the part. |
partType | (enum PartType) The part type for the part.
See PartType. |
haveDependents | (bool) Have Dependents. |
The following elements are optional:
complementaryDescription | (string) The extended description for the part. |
keyword | (string) Keyword. |
family | (string) The assortment for the part. |
barcode | (string) The barcode for the part. |
brand | (string) The brand for the part. |
image | (string) The picture for the part. |
remarks | (string) The remarks for the part. |
externalId | (string) The external identifier for the part. |
externalVersion | (string) The external version for the part. |
brandModel | (string) The brand model for the part. |
supplier | (string) Supplier. |
attribute | (string) Attribute. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |