Parts and Inventory | Warehouse
Service to manage entities of type 'Warehouse'.
Overview
URL | api/{tenantKey}/{orgKey}/inventoryCore/warehouses |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute Warehouse
- PUT Set IsActive Warehouse
- PUT Set WarehouseKey Warehouse
- PUT Set Company Warehouse
- PUT Set Description Warehouse
- PUT Set AllowPartEntries Warehouse
- PUT Set AllowPartIssues Warehouse
- PUT Set StreetName Warehouse
- PUT Set BuildingNumber Warehouse
- PUT Set CityName Warehouse
- PUT Set PostalZone Warehouse
- PUT Set ClosedExercise Warehouse
- PUT Set Region Warehouse
- PUT Set Country Warehouse
- PUT Set IsLocked Warehouse
- PUT Set ManagedExternally Warehouse
- DELETE:
All Resources
This service uses the following resources:
GET Warehouses (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 WarehouseResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Warehouse 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 WarehouseResource. |
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 Warehouse by key
Returns the entity record that matches the specified key.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
Response:
When successful, the response body contains the entity record. See WarehouseResource. |
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 Warehouses
Creates a new entity record.
The following elements are required:
warehouseResource | (ApiWarehouseResource) The request body should contain the entity record that should be created. See ApiWarehouseResource. |
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 ApiWarehouseResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AllowPartEntries Warehouse
Updates the value of attribute 'AllowPartEntries' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 AllowPartIssues Warehouse
Updates the value of attribute 'AllowPartIssues' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 BuildingNumber Warehouse
Updates the value of attribute 'BuildingNumber' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 CityName Warehouse
Updates the value of attribute 'CityName' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 ClosedExercise Warehouse
Updates the value of attribute 'ClosedExercise' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
value | (DateTime) 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 Company Warehouse
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Country Warehouse
Updates the value of attribute 'Country' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Warehouse
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Warehouse
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 IsLocked Warehouse
Updates the value of attribute 'IsLocked' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 ManagedExternally Warehouse
Updates the value of attribute 'ManagedExternally' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 PostalZone Warehouse
Updates the value of attribute 'PostalZone' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Region Warehouse
Updates the value of attribute 'Region' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 StreetName Warehouse
Updates the value of attribute 'StreetName' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 WarehouseKey Warehouse
Updates the value of attribute 'WarehouseKey' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Warehouse
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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 Warehouse 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 Warehouse by key
Deletes the entity record that matches the specified key.
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
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
ApiWarehouseResource
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
company | (string) The company for the Warehouse. |
description | (string) The description for the Warehouse. |
allowPartEntries | (bool) Determines if this warehouse accepts part entries. |
allowPartIssues | (bool) Determines if this warehouse accepts part issues. |
isLocked | (bool) Indicates if the warehouse is currently locked. |
The following elements are optional:
streetName | (string) The street name for the Warehouse. |
buildingNumber | (string) The building number for the Warehouse. |
cityName | (string) The city name for the Warehouse. |
postalZone | (string) The postal zone for the Warehouse. |
closedExercise | (DateTime) The closed exercise date for the Warehouse. |
region | (string) The region for the Warehouse. |
country | (string) The country for the Warehouse. |
managedExternally | (bool) Managed Externally. |
WarehouseResource
The following elements are required:
warehouseKey | (string) The key for the Warehouse. |
company | (string) The company for the Warehouse.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service. |
description | (string) The description for the Warehouse. |
allowPartEntries | (bool) Determines if this warehouse accepts part entries. |
allowPartIssues | (bool) Determines if this warehouse accepts part issues. |
isLocked | (bool) Indicates if the warehouse is currently locked. |
The following elements are optional:
streetName | (string) The street name for the Warehouse. |
buildingNumber | (string) The building number for the Warehouse. |
cityName | (string) The city name for the Warehouse. |
postalZone | (string) The postal zone for the Warehouse. |
closedExercise | (DateTime) The closed exercise date for the Warehouse. |
region | (string) The region for the Warehouse.
(fk) Allowed value: the natural key of a record of type Region. These records are accessibly through the Regions service. |
country | (string) The country for the Warehouse.
(fk) Allowed value: the natural key of a record of type Country. These records are accessibly through the Countries service. |
managedExternally | (bool) Managed Externally. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |