Through this EndPoint you can update the information of an existing warehouse.
You only need to send the parameters that need to be updated.
The parameter in the url warehouse_code is the code of the warehouse you want to update. You can check it here (field code)
Input parameters in the Body
The following information must be sent in the body of the request. Only send the parameters that need to be updated.
| Parameter | Type | Description | 
|---|---|---|
| description | Text | Description of the warehouse. | 
| address | Text | Warehouse address | 
| state | Text | State/Region | 
| city | Text | City | 
| country | Text | Country | 
| zip_code | Text | Post code | 
| code_location | Text | Code of the location-type asset to which the warehouse will be limited. (field code ) | 
| external_integration | Boolean | True if it is an integrated warehouse, false otherwise (Default false) | 
| active | Boolean | Active or Inactive (Default true) | 
| visible_to_all | Boolean | True if the warehouse will be visible to all, false otherwise (Default false) | 
Output parameters
| Parameter | Type | Description | 
|---|---|---|
| code | Text | Warehouse code | 
| description | Text | Description | 
| address | Text | Address | 
| state | Text | State | 
| country | Text | Country | 
| city | Text | City | 
| zip_code | Text | Zip Code | 
| location_description | Text | Located in or is part of | 
| external_integration | Boolean | True if it is an integration warehouse, false otherwise | 
| active | Boolean | True if the warehouse is active, false otherwise | 
| visible_to_all | Boolean | True if the warehouse is visible to all people regardless of location, false otherwise | 
| allow_negative_stock | Boolean | True if negative stock is permitted, false otherwise | 
| material_request_approval | Boolean | True if material requisitions can be approved, false otherwise | 
Example:
Request: (PUT)https://app.fracttal.com/api/warehouses/FTTL-COP
{
	"city": "Poblado - Medellin",
	"active": false
}{
    "success": true,
    "message": "200",
    "data": {
        "description": "Almacén Fracttal Colombia SAS",
        "code": "FTTL-COP",
        "address": "Cra 43 N 25 a 129",
        "state": "Antioquia",
        "country": "Colombia",
        "city": "Poblado - Medellin",
        "zip_code": "050021",
        "location_description": "// ",
        "external_integration": false,
        "active": false,
        "visible_to_all": false,
        "allow_negative_stock": false,
        "material_request_approval": false,
        "prefix_po": null,
        "suffix_po": null,
        "folio_po": 1,
        "prefix": null,
        "folio": 1,
        "suffix": null
    },
    "total": 1
}