# Update of product availability Updates a product availability. Endpoint: PATCH /api/products/availabilities/{id} Version: 1.0.0 Security: shoptetAccessToken, shoptetPrivateApiToken ## Path parameters: - `id` (number, required) product availability ID Example: "123" ## Header parameters: - `Content-Type` (string, required) ## Request fields (application/json): - `data` (object, required) - `data.name` (string) Name of the availability - `data.indexName` (string,null) Code name of the availability - `data.description` (string,null) Description of the availability - `data.color` (string,null) Color hex code of the availability - `data.onStockInHours` (integer,null) When will a product be on stock. (in hours) - `data.deliveryInHours` (integer,null) When will a product be delivered. (in hours) - `data.googleAvailabilityId` (integer,null) ID of the google availability. Possible values: (in stock), (out of stock), (preorder), (backorder). ## Response 200 fields (application/json): - `data` (object, required) - `data.availability` (object, required) - `data.availability.id` (integer, required) ID of the availability - `data.availability.name` (string, required) Name of the availability - `data.availability.indexName` (string,null) Code name of the availability - `data.availability.description` (string,null, required) Description of the availability - `data.availability.color` (string,null, required) Color hex code of the availability - `data.availability.system` (boolean, required) Is availability default (system) and not user made? - `data.availability.onStockInHours` (integer,null, required) When will a product be on stock. (in hours) - `data.availability.deliveryInHours` (integer,null, required) When will a product be delivered. (in hours) - `data.availability.googleAvailability` (object,null, required) Google availability info - `data.availability.googleAvailability.id` (integer, required) ID of the google availability - `data.availability.googleAvailability.name` (string, required) Name of the google availability - `errors` (array,null, required) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 404 fields (application/json): - `data` (null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced ## Response 422 fields (application/json): - `data` (null) - `errors` (array,null) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced