# Update Order Updates existing GOPACS order by id. Endpoint: PUT /public-api/2.0/electricity/orders/gopacs/{id} Version: 1.0 Security: api-key ## Path parameters: - `id` (string, required) ## Request fields (application/json): - `quantity` (number, required) The quantity can not be negative and 0. Also the decimal limit of the quantity is 1. The capacity is required field. Example: 2 - `price` (number, required) The price is required field. Example: 35 - `ean` (string, required) The ean is required field. Example: 871685920001768800 - `metaData` (object) Example: {"key1":"value1","key2":"value2"} - `customExpirationTime` (integer) Custom expiration time of an order. If no value is provided then the order will expire 15 minutes before the start time. The time must be a time in the future and must not be later than 15 minutes before the start time. The time provided must be a multiple of 15 minutes. For example 03:00, 03:15, 03:30 and 03:45. Example: 1465682400000 - `marketBased` (boolean, required) The markedBased field is mandatory - `facilityType` (string) The facilityType field is required when marketBased is set to false. Example: "B01" - `contractId` (string) The contractId field is not mandatory - `usageFraction` (number) The usageFraction field is not mandatory Example: 0.28 ## Response 200 fields (application/json): - `href` (string) - `hreflang` (string) - `title` (string) - `type` (string) - `deprecation` (string) - `profile` (string) - `name` (string) - `templated` (boolean) ## Response 400 fields (application/json): - `errors` (array) ## Response 412 fields (*/*): - `errors` (array) ## Response 423 fields (application/json): - `errors` (array) ## Response 500 fields (*/*): - `errors` (array) ## Response 403 fields