# Update a facility **PUT /api/facilities/{id}** Allows you to edit an existing facility given its ID and the attributes to edit. Available to Garmat administrators and Customer admins just for a few fields. ## Servers - http://localhost:4000: http://localhost:4000 () ## Authentication methods - Api key ## Parameters ### Path parameters - **id** (string) the ID of the facility to update ### Body: application/json (object) The parameters to update a facility - **account_id** (string) id of the account to associate the facility to - **address_line_1** (string) First line of the facility address - **address_line_2** (string) Second line of the facility address - **city** (string) City where the facility is located - **climate_control** (string) The type of climate control the facility has. Can be one of 'both', 'heated_only', 'cooled_only', or 'none' - **distributor_id** (string) id of the distributor associated to the facility - **latitude** (number) The facility latitude - **longitude** (number) The facility longitude - **name** (string) name of the facility to create - **region_id** (string) ID of the region the facility belongs to - **square_ft** (number) The square footage of the facility - **state** (string) State where the facility is located - **status** (string) status of the facility to create. - **store_number** (string) Identifier of the facility - **type** (string) The type of facility. One of auto_body_shop, manufacturing_plant, or auto_dealership - **tz** (string) The timezone of the facility as a IANA TZ identifier string - **working_hours** (array[object]) List of facility schedules for the week - **zipcode** (string) Zip code of the facility ## Responses ### 200 OK #### Body: application/json (object) - **account_id** (string) Id of the account the facility belongs to - **account_name** (string) Name of the account the facility belongs to - **address_line_1** (string) First line of the facility address - **address_line_2** (string) Second line of the facility address - **city** (string) City where the facility is located - **climate_control** (string) The type of climate control the facility has. Can be one of 'both', 'heated_only', 'cooled_only', or 'none' - **distributor_id** (string) Id of the distributor the facility belongs to - **distributor_name** (string) Name of the distributor the facility belongs to - **id** (string) ID of the facility in the system - **latitude** (number) The facility latitude - **longitude** (number) The facility longitude - **name** (string) Name of the facility - **region_id** (string) ID of the region the facility belongs to - **region_name** (string) Name of the region the facility belongs to - **square_ft** (number) The square footage of the facility - **state** (string) State where the facility is located - **status** (string) Status of the facility. - **store_number** (string) Identifier of the facility - **type** (string) The type of facility. One of auto_body_shop, manufacturing_plant, or auto_dealership - **tz** (string) The timezone of the facility as a IANA TZ identifier string - **working_hours** (array[object]) List of facility schedules for the week - **zipcode** (string) Zip code of the facility ### 400 Bad request #### Body: application/json (object) - **error** (string) Human readable version of the error status code ### 401 Unauthorized #### Body: application/json (object) - **error** (string) Human readable version of the error status code [Powered by Bump.sh](https://bump.sh)