> For the complete documentation index, see [llms.txt](https://developer.dashdoc.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.dashdoc.com/docs/api-reference/wam-forms/wam-form-loads.md).

# WAM form loads

## GET /wam/forms/{form-uid}/loads/

> List all loads of a given waste form

````json
{"openapi":"3.0.0","info":{"title":"Dashdoc public API","version":"4.0"},"tags":[{"name":"Wam-Form-Loads"}],"servers":[{"description":"Production","url":"https://api.dashdoc.eu/api/v4"},{"description":"Sandbox","url":"https://sandbox.dashdoc.eu/api/v4"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Authentication is token based. You can issue a token for your API request from the ['API' section of the settings](http://dashdoc.eu/app/settings/api/) menu. The token MUST be sent in a `Authorization` header with each request.\n\n\n**Example of authenticated request**\n```\n$ curl -X GET -H \"Authorization: Token <your token>\" \"https://api.dashdoc.eu/api/v4/\"\n```\n","in":"header","name":"Authentication","type":"apiKey"}},"schemas":{"Loads":{"properties":{"count":{"type":"integer"},"next":{"nullable":true,"type":"string"},"previous":{"nullable":true,"type":"string"},"results":{"items":{"$ref":"#/components/schemas/Load"},"type":"array"}},"type":"object"},"Load":{"properties":{"uid":{"description":"Unique identifier of the waste load","type":"string"},"description":{"description":"Description of the waste load","type":"string"},"weight":{"description":"Weight of the waste in kilograms","format":"float","type":"number"},"quantity":{"description":"Quantity of packages","format":"double","type":"number"},"eural_code":{"description":"The Eural code of the waste, suffixed with a * when the European waste catalogue marks it as hazardous.","type":"string"},"physical_properties":{"description":"Physical properties of the waste load","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load","type":"string"},"packaging_type":{"description":"Packaging type of the waste load","type":"string"},"treatment_type":{"description":"Treatment type of the waste load","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"treatment_code":{"enum":["R1","R2","R3","R4","R5","R6","R7","R8","R9","R10","R11","R12","R13","D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D13","D14","D15"],"type":"string"}}},"paths":{"/wam/forms/{form-uid}/loads/":{"get":{"operationId":"listWasteFormLoads","parameters":[{"description":"Unique identifier of the waste form","in":"path","name":"form-uid","required":true,"schema":{"type":"string"}},{"description":"A page number within the paginated result set.","in":"query","name":"page","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loads"}}},"description":"Get successful"}},"summary":"List all loads of a given waste form","tags":["Wam-Form-Loads"]}}}}
````

## POST /wam/forms/{form-uid}/loads/

> Create a waste load

````json
{"openapi":"3.0.0","info":{"title":"Dashdoc public API","version":"4.0"},"tags":[{"name":"Wam-Form-Loads"}],"servers":[{"description":"Production","url":"https://api.dashdoc.eu/api/v4"},{"description":"Sandbox","url":"https://sandbox.dashdoc.eu/api/v4"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Authentication is token based. You can issue a token for your API request from the ['API' section of the settings](http://dashdoc.eu/app/settings/api/) menu. The token MUST be sent in a `Authorization` header with each request.\n\n\n**Example of authenticated request**\n```\n$ curl -X GET -H \"Authorization: Token <your token>\" \"https://api.dashdoc.eu/api/v4/\"\n```\n","in":"header","name":"Authentication","type":"apiKey"}},"schemas":{"PublicWasteLoadInputValidator":{"properties":{"description":{"description":"Description of the waste load. Text longer than 255 characters is cut at 255 characters.","type":"string"},"weight":{"description":"Weight of the waste in kilograms. Rounded half up to the gram (3 decimals).","format":"float","minimum":0,"type":"number"},"quantity":{"description":"Number of packages, as a whole number. This is required for hazardous waste.","minimum":0,"type":"integer"},"eural_code":{"description":"The Eural code of the waste, as `02 01 01` or `020101`. It must exist in the European waste catalogue. Dashdoc reads from the catalogue whether the waste is hazardous: the `*` suffix is optional and ignored.\n","type":"string"},"physical_properties":{"description":"Physical properties of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"packaging_type":{"description":"Packaging type of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"treatment_type":{"description":"Treatment type of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load. Case, spaces and leading zeros are ignored (`r01` is read as `R1`), and duplicates are removed.\n","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"treatment_code":{"enum":["R1","R2","R3","R4","R5","R6","R7","R8","R9","R10","R11","R12","R13","D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D13","D14","D15"],"type":"string"},"Load":{"properties":{"uid":{"description":"Unique identifier of the waste load","type":"string"},"description":{"description":"Description of the waste load","type":"string"},"weight":{"description":"Weight of the waste in kilograms","format":"float","type":"number"},"quantity":{"description":"Quantity of packages","format":"double","type":"number"},"eural_code":{"description":"The Eural code of the waste, suffixed with a * when the European waste catalogue marks it as hazardous.","type":"string"},"physical_properties":{"description":"Physical properties of the waste load","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load","type":"string"},"packaging_type":{"description":"Packaging type of the waste load","type":"string"},"treatment_type":{"description":"Treatment type of the waste load","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"LoadValidationError":{"additionalProperties":{"properties":{"code":{"description":"Machine-readable error codes.","items":{"type":"string"},"type":"array"},"detail":{"description":"Human-readable error messages.","items":{"type":"string"},"type":"array"}},"type":"object"},"description":"Errors keyed by the name of the invalid field.","type":"object"}}},"paths":{"/wam/forms/{form-uid}/loads/":{"post":{"operationId":"createWasteFormLoad","parameters":[{"description":"Unique identifier of the waste form","in":"path","name":"form-uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PublicWasteLoadInputValidator"},{"required":["description","eural_code","treatment_codes"],"type":"object"}]}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}}},"description":"Create successful. The response holds the stored values (rounded weight, cut text, normalized codes)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadValidationError"}}},"description":"Invalid load. For example, `quantity` is not a whole number or `weight` is negative (`invalid`), the Eural code or a treatment code does not exist (`does_not_exist`), or the Eural code is hazardous and `quantity`, `physical_properties`, `chemical_composition`, `packaging_type` or `treatment_type` is missing (`required_for_dangerous_waste`, one entry per missing field).\n"}},"summary":"Create a waste load","tags":["Wam-Form-Loads"]}}}}
````

## GET /wam/forms/{form-uid}/loads/{uid}/

> Read a load of a given waste form

````json
{"openapi":"3.0.0","info":{"title":"Dashdoc public API","version":"4.0"},"tags":[{"name":"Wam-Form-Loads"}],"servers":[{"description":"Production","url":"https://api.dashdoc.eu/api/v4"},{"description":"Sandbox","url":"https://sandbox.dashdoc.eu/api/v4"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Authentication is token based. You can issue a token for your API request from the ['API' section of the settings](http://dashdoc.eu/app/settings/api/) menu. The token MUST be sent in a `Authorization` header with each request.\n\n\n**Example of authenticated request**\n```\n$ curl -X GET -H \"Authorization: Token <your token>\" \"https://api.dashdoc.eu/api/v4/\"\n```\n","in":"header","name":"Authentication","type":"apiKey"}},"schemas":{"Load":{"properties":{"uid":{"description":"Unique identifier of the waste load","type":"string"},"description":{"description":"Description of the waste load","type":"string"},"weight":{"description":"Weight of the waste in kilograms","format":"float","type":"number"},"quantity":{"description":"Quantity of packages","format":"double","type":"number"},"eural_code":{"description":"The Eural code of the waste, suffixed with a * when the European waste catalogue marks it as hazardous.","type":"string"},"physical_properties":{"description":"Physical properties of the waste load","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load","type":"string"},"packaging_type":{"description":"Packaging type of the waste load","type":"string"},"treatment_type":{"description":"Treatment type of the waste load","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"treatment_code":{"enum":["R1","R2","R3","R4","R5","R6","R7","R8","R9","R10","R11","R12","R13","D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D13","D14","D15"],"type":"string"}}},"paths":{"/wam/forms/{form-uid}/loads/{uid}/":{"get":{"operationId":"readWasteFormLoad","parameters":[{"description":"Unique identifier of the waste form","in":"path","name":"form-uid","required":true,"schema":{"type":"string"}},{"description":"Unique identifier of the waste load","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}}},"description":"Get successful"}},"summary":"Read a load of a given waste form","tags":["Wam-Form-Loads"]}}}}
````

## DELETE /wam/forms/{form-uid}/loads/{uid}/

> Delete a load of a given waste form

````json
{"openapi":"3.0.0","info":{"title":"Dashdoc public API","version":"4.0"},"tags":[{"name":"Wam-Form-Loads"}],"servers":[{"description":"Production","url":"https://api.dashdoc.eu/api/v4"},{"description":"Sandbox","url":"https://sandbox.dashdoc.eu/api/v4"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Authentication is token based. You can issue a token for your API request from the ['API' section of the settings](http://dashdoc.eu/app/settings/api/) menu. The token MUST be sent in a `Authorization` header with each request.\n\n\n**Example of authenticated request**\n```\n$ curl -X GET -H \"Authorization: Token <your token>\" \"https://api.dashdoc.eu/api/v4/\"\n```\n","in":"header","name":"Authentication","type":"apiKey"}}},"paths":{"/wam/forms/{form-uid}/loads/{uid}/":{"delete":{"operationId":"deleteWasteFormLoad","parameters":[{"description":"Unique identifier of the waste form","in":"path","name":"form-uid","required":true,"schema":{"type":"string"}},{"description":"Unique identifier of the waste load","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete successful"}},"summary":"Delete a load of a given waste form","tags":["Wam-Form-Loads"]}}}}
````

## PATCH /wam/forms/{form-uid}/loads/{uid}/

> Update a load of a given waste form

````json
{"openapi":"3.0.0","info":{"title":"Dashdoc public API","version":"4.0"},"tags":[{"name":"Wam-Form-Loads"}],"servers":[{"description":"Production","url":"https://api.dashdoc.eu/api/v4"},{"description":"Sandbox","url":"https://sandbox.dashdoc.eu/api/v4"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Authentication is token based. You can issue a token for your API request from the ['API' section of the settings](http://dashdoc.eu/app/settings/api/) menu. The token MUST be sent in a `Authorization` header with each request.\n\n\n**Example of authenticated request**\n```\n$ curl -X GET -H \"Authorization: Token <your token>\" \"https://api.dashdoc.eu/api/v4/\"\n```\n","in":"header","name":"Authentication","type":"apiKey"}},"schemas":{"PublicWasteLoadInputValidator":{"properties":{"description":{"description":"Description of the waste load. Text longer than 255 characters is cut at 255 characters.","type":"string"},"weight":{"description":"Weight of the waste in kilograms. Rounded half up to the gram (3 decimals).","format":"float","minimum":0,"type":"number"},"quantity":{"description":"Number of packages, as a whole number. This is required for hazardous waste.","minimum":0,"type":"integer"},"eural_code":{"description":"The Eural code of the waste, as `02 01 01` or `020101`. It must exist in the European waste catalogue. Dashdoc reads from the catalogue whether the waste is hazardous: the `*` suffix is optional and ignored.\n","type":"string"},"physical_properties":{"description":"Physical properties of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"packaging_type":{"description":"Packaging type of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"treatment_type":{"description":"Treatment type of the waste load. This is required for hazardous waste. Text longer than 255 characters is cut at 255 characters.","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load. Case, spaces and leading zeros are ignored (`r01` is read as `R1`), and duplicates are removed.\n","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"treatment_code":{"enum":["R1","R2","R3","R4","R5","R6","R7","R8","R9","R10","R11","R12","R13","D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D13","D14","D15"],"type":"string"},"Load":{"properties":{"uid":{"description":"Unique identifier of the waste load","type":"string"},"description":{"description":"Description of the waste load","type":"string"},"weight":{"description":"Weight of the waste in kilograms","format":"float","type":"number"},"quantity":{"description":"Quantity of packages","format":"double","type":"number"},"eural_code":{"description":"The Eural code of the waste, suffixed with a * when the European waste catalogue marks it as hazardous.","type":"string"},"physical_properties":{"description":"Physical properties of the waste load","type":"string"},"chemical_composition":{"description":"Chemical composition of the waste load","type":"string"},"packaging_type":{"description":"Packaging type of the waste load","type":"string"},"treatment_type":{"description":"Treatment type of the waste load","type":"string"},"treatment_codes":{"description":"Treatment codes of the waste load","items":{"$ref":"#/components/schemas/treatment_code"},"type":"array"}},"type":"object"},"LoadValidationError":{"additionalProperties":{"properties":{"code":{"description":"Machine-readable error codes.","items":{"type":"string"},"type":"array"},"detail":{"description":"Human-readable error messages.","items":{"type":"string"},"type":"array"}},"type":"object"},"description":"Errors keyed by the name of the invalid field.","type":"object"}}},"paths":{"/wam/forms/{form-uid}/loads/{uid}/":{"patch":{"operationId":"updateWasteFormLoad","parameters":[{"description":"Unique identifier of the waste form","in":"path","name":"form-uid","required":true,"schema":{"type":"string"}},{"description":"Unique identifier of the waste load","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWasteLoadInputValidator"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Load"}}},"description":"Update successful. The response holds the stored values (rounded weight, cut text, normalized codes)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadValidationError"}}},"description":"Invalid load. For example, `quantity` is not a whole number or `weight` is negative (`invalid`), or the Eural code or a treatment code does not exist (`does_not_exist`).\n"}},"summary":"Update a load of a given waste form","tags":["Wam-Form-Loads"]}}}}
````
