Update Waste
Update Waste
Modify waste record details and update disposal information
PATCH
Update Waste
Update Waste
Update specific fields of an existing waste record. All fields are optional - only include fields you want to modify. Omitted fields will retain their current values.CO2e Recalculation: When you update fields like
base_quantity, waste_efs_id, or unit_id, CO2e emissions are automatically recalculated.Request
Path Parameters
uuid
required
The UUID of the waste record to updateExample:
550e8400-e29b-41d4-a716-446655440000Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
All parameters are optional. Only include fields you want to update.string
Waste identification name or invoice numberExample:
"RSU-2024-001-Updated"string
Description of the wasteExample:
"Updated description"date
Start date of the waste period. An empty string (
"") is treated the same as omitting the field — the existing value is left unchanged.Example: "2024-01-01"date
End date of the waste period. An empty string (
"") is treated the same as omitting the field — the existing value is left unchanged.Example: "2024-06-30"number
Waste quantity in the specified unit. Must be greater than 0.Example:
2000.0string
Waste destination or treatment facilityExample:
"New waste treatment plant"number
Distance to waste treatment center in kilometersExample:
30.0uuid
UUID of the quantity unitExample:
"61743a63-ff70-459c-9567-5eee8f7dfd5c"uuid
UUID of the waste emission factorExample:
"770e8400-e29b-41d4-a716-446655440000"uuid
UUID of a custom emission factorExample:
"880e8400-e29b-41d4-a716-446655440000"Response
string
Unique identifier (UUID) for the waste record
string
Waste identification name
string
Description of the waste
date
Start date of the waste period
date
End date of the waste period
number
Waste quantity in the original unit
number
Adjusted quantity after applying percentage allocation
number
Allocation percentage (0 to 1)
string
Waste destination or treatment facility
number
Distance to waste treatment center in km
string
Current status:
uploaded, active, loading, or errorarray[string] | null
Error details when status is
errornumber
CO2 equivalent emissions in kg CO2e
number
Biogenic CO2 emissions in kg CO2e
boolean | null
Whether the waste record is enabled for emission calculations
string | null
UUID of the linked file (if created via bulk import)
string | null
Name of the linked import file
string | null
Download URL for the linked file
datetime
Timestamp when the record was created
datetime | null
Timestamp when the record was last updated
Example
Successful Response
Common Errors
404 Not Found
Cause: Waste record not found in organization403 Forbidden
Cause: Waste doesn’t belong to your organizationx-organization-id header matches the organization that owns this waste record.
422 Validation Error
Cause: Invalid valuesRelated Endpoints
List Wastes
Retrieve all waste records
Create Waste
Add a new waste record
Facilities
List facilities for your organization