With the /ProductDefaultLocations endpoint user can manage ProductDefaultLocations from the database.

GET /api/ProductDefaultLocations/List Get a list of all ProductDefaultLocations
Request Example
    /api/ProductDefaultLocations/List
            
RESPONSE EXAMPLE
    [
        {
            "Id": "string
            "Name": "string",
            "Code": "string"
        },
        {...}
    ]
            
GET /api/ProductDefaultLocations/Get Get a ProductDefaultLocation
Request Example
    /api/ProductDefaultLocations/Get?id=ProductDefaultLocationId&code=ProductDefaultLocationCode
            Use id parameter to get ProductDefaultLocationCode by id or
            Use code parameter to get ProductDefaultLocationCode by code
            
RESPONSE EXAMPLE
    If found, a ProductDefaultLocations is returned with status code 200. Otherwise an error with code and message is returned with status code 404  
    {
        {
            "Id": "string
            "Name": "string",
            "Code": "string"
        }
    }    
            
POST /api/ProductDefaultLocations/Create
Model Request Example
    {
        "Id": "string
        "Name": "string",
        "Code": "string"
    }    
            
Response Example
If the operation is successful a ProductDefaultLocation will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409          
            
PUT /api/ProductDefaultLocations/Update Update a ProductDefaultLocation
Request Example
    /api/ProductDefaultLocations/Update?id=ProductDefaultLocationId&Code=ProductDefaultLocationCode
            Use id parameter to identify the ProductDefaultLocation to update by id or
            Use code parameter to identify the ProductDefaultLocation to update by code
            
Model Request Example
    All fields are updated
    {
        "Name": "string",
        "Code": "string"
    }
            
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409
            
DELETE /api/ProductDefaultLocations/Delete Delete a ProductDefaultLocation
Request Example
/api/ProductDefaultLocations/Delete?id=ProductDefaultLocationId&code=ProductDefaultLocationCode
Use id parameter to identify the ProductDefaultLocation to update by id or
Use code parameter to identify the ProductDefaultLocation to delete by code
            
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409