# Set Green Lot Weight Sets a new weight for a given green lot. When the green lot weight set it zero, the green lot will be marked as consumed. Notice that a negative weight is not supported. Endpoint: POST /inventory.green.setGreenLotWeight Security: oauth2 ## Request fields (application/json): - `data` (object) Defines the data required for the operation, including all mandatory and optional fields. - `data.greenLotId` (string, required) The unique identifier of the green lot for which the weight will be set Example: "550e8400-e29b-41d4-a716-446655440000" - `data.weight` (object, required) Represents the current weight of the object. - `data.weight.amount` (number, required) The weight amount represented as floating-point number. Example: 12.5 - `data.weight.unit` (string, required) The weight unit of the object. Enum: "KG", "LBS" ## Response 200 fields (application/json): - `ok` (boolean) Indicates whether the request was successful. Example: true ## Response 400 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 401 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 403 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 422 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 500 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided"