# Update Warehouse This endpoint allows you to update an existing warehouse in the system. You need to provide the warehouseId of the warehouse you want to update. Endpoint: PUT /warehouses/{warehouseId} Version: 1.0.0 Security: bearerAuth ## Path parameters: - `warehouseId` (integer, required) ID of the warehouse to update ## Request fields (application/json): - `id` (integer, required) Warehouse Id - `name` (string, required) Warehouse Name - `code` (string) Warehouse Code - `address` (string, required) The Street Address - `is_residential` (boolean, required) Residential indicator - `zipcode` (string, required) Warehouse Zipcode - `city_id` (integer, required) The id of City - `appointment_by` (integer) 0: Unknown, 1: No apt needed, 2: Customer, 3: DrayEasy Enum: 0, 1, 2, 3 - `live_or_drop` (integer) 0: Unknown, 1: Live, 2: Drop Enum: 0, 1, 2 - `customer_memo` (string) Customer Memo - `working_day_from` (integer) 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday Enum: 0, 1, 2, 3, 4, 5, 6 - `working_day_to` (integer) 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday Enum: 0, 1, 2, 3, 4, 5, 6 - `working_hour_from` (string) Working Hour Begin - `working_hour_to` (string) Working Hour End - `time_zone` (string) Time zone Enum: "AST", "EST", "CST", "MST", "PST", "AKST", "HST" - `contacts` (array, required) Array of Contacts - `contacts.id` (integer) Contact ID (required for existing contacts) - `contacts.type` (array) One or more of this set of data: APT, SALES, DISPATCH, ACCOUNTING Enum: "APT", "SALES", "DISPATCH", "ACCOUNTING" - `contacts.name` (string, required) Contact Name - `contacts.role` (string) Contact Role - `contacts.phone` (string) Contact Phone - `contacts.fax` (string) Contact Fax - `contacts.email` (string) Contact Email - `contacts.remark` (string) Contact Remark ## Response 200 fields (application/json): - `data` (object) - `data.id` (integer) Warehouse ID Example: 2798 - `data.name` (string) Warehouse name Example: "TEST" - `data.code` (string,null) Warehouse code - `data.zipcode` (string) Postal/ZIP code Example: "90001" - `data.appointment_by` (integer) Appointment type identifier - `data.customer_memo` (string,null) Customer memo or notes - `data.live_or_drop` (integer) Live or drop status (0: Unknown, 1: Live, 2: Drop) Enum: 0, 1, 2 - `data.address` (string) Warehouse street address Example: "TEST" - `data.delivery_order_address` (string) Full formatted delivery address Example: "TEST\nTEST\nLOS ANGELES, CA, USA 90001" - `data.created_at` (string) Warehouse creation timestamp Example: "2023-05-25T04:14:14.000000Z" - `data.user` (object) - `data.user.name` (string) User's name Example: "Name1" - `data.user.email` (string) User's email address Example: "email1@email.com" - `data.user.company` (string) User's company name Example: "Company1" - `data.city` (object) - `data.city.id` (integer) The unique identifier for the city Example: 1 - `data.city.country` (string) The country where the city is located Example: "USA" - `data.city.full_name` (string) The full name of the city, including state and country Example: "Los Angeles, CA, USA" - `data.city.name` (string) The name of the city Example: "LOS ANGELES" - `data.city.state` (string) The state where the city is located Example: "CA" - `data.city.alias` (string,null) An alias for the city - `data.city.latitude` (number) The latitude coordinate of the city Example: 33.973093 - `data.city.longitude` (number) The longitude coordinate of the city Example: -118.247896 - `data.contacts` (array) List of warehouse contacts - `data.contacts.id` (integer) The unique identifier for the contact Example: 1388 - `data.contacts.name` (string) The name of the contact Example: "John" - `data.contacts.type` (array) The type or roles associated with the contact Enum: "APT", "SALES", "DISPATCH", "ACCOUNTING" - `data.contacts.role` (string,null) The role of the contact Example: "UFO" - `data.contacts.phone` (string) The phone number of the contact Example: "11112345688" - `data.contacts.fax` (string,null) The fax number of the contact - `data.contacts.email` (string) The email address of the contact Example: "john@john.com" - `data.contacts.remark` (string,null) Any additional remarks about the contact Example: "Test" ## Response 400 fields ## Response 401 fields