Jasmin Developers - Web API Reference

GET Operations

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 /materialsCore/warehouses/odata

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 /materialsCore/warehouses/{id}

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:

GET /materialsCore/warehouses/{warehouseKey}

POST Operations

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.

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:

POST /materialsCore/warehouses

PUT Operations

PUT Set AllowItemEntries Warehouse

Updates the value of attribute 'AllowItemEntries' 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 /materialsCore/warehouses/{warehouseKey}/allowItemEntries

PUT Set AllowItemIssues Warehouse

Updates the value of attribute 'AllowItemIssues' 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 /materialsCore/warehouses/{warehouseKey}/allowItemIssues

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 /materialsCore/warehouses/{warehouseKey}/buildingNumber

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 /materialsCore/warehouses/{warehouseKey}/cityName

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 /materialsCore/warehouses/{warehouseKey}/closedExercise

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 /materialsCore/warehouses/{warehouseKey}/company

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 /materialsCore/warehouses/{warehouseKey}/country

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 /materialsCore/warehouses/{warehouseKey}/description

PUT Set ExternalId Warehouse

Updates the value of attribute 'ExternalId' 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 /materialsCore/warehouses/{warehouseKey}/externalId

PUT Set ExternalVersion Warehouse

Updates the value of attribute 'ExternalVersion' 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 /materialsCore/warehouses/{warehouseKey}/externalVersion

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 /materialsCore/warehouses/{warehouseKey}/isActive

PUT Set IsExternallyManaged Warehouse

Updates the value of attribute 'IsExternallyManaged' 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 /materialsCore/warehouses/{warehouseKey}/isExternallyManaged

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 /materialsCore/warehouses/{warehouseKey}/isLocked

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 /materialsCore/warehouses/{warehouseKey}/postalZone

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 /materialsCore/warehouses/{warehouseKey}/region

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 /materialsCore/warehouses/{warehouseKey}/streetName

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 /materialsCore/warehouses/{warehouseKey}/warehouseKey

DELETE Operations

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 /materialsCore/warehouses/{id}

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:

DELETE /materialsCore/warehouses/{warehouseKey}

Resources


ApiWarehouseResource

The following elements are required:

warehouseKey (string) The key for the Warehouse.
company (string) The company for the Warehouse.
allowItemEntries (bool) Determines if this warehouse accepts item entries.
allowItemIssues (bool) Determines if this warehouse accepts item issues.
isExternallyManaged (bool) Indicates whether the warehouse is externally managed.
isLocked (bool) Indicates if the warehouse is currently locked.

The following elements are optional:

description (string) The description for the Warehouse.
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.
externalId (string) The external identification for the Warehouse.
externalVersion (string) The external version for the Warehouse.
region (string) The region for the Warehouse.
country (string) The country for the Warehouse.


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.
allowItemEntries (bool) Determines if this warehouse accepts item entries.
allowItemIssues (bool) Determines if this warehouse accepts item issues.
isExternallyManaged (bool) Indicates whether the warehouse is externally managed.
isLocked (bool) Indicates if the warehouse is currently locked.

The following elements are optional:

description (string) The description for the Warehouse.
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.
externalId (string) The external identification for the Warehouse.
externalVersion (string) The external version 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.