Material files
The files of a product of any material type: its datasheet, certificates, documents and pictures. One set of endpoints for all types, which names the type in the path.
List the files of a product
The product's datasheet, certificates, documents and pictures, each with a `downloadUrl` that fetches the file without an API key for one hour. Requires the `read:materials` scope.
Set the datasheet of a product
Stores the product's datasheet, or puts another one in its place. Send a form (`multipart/form-data`) with a PDF in `file`. Builder and configurator offer the datasheet to your customers, so it is a public file. Sending the datasheet the product has changes nothing. Customers see it at once, also with offers they have already. Requires the `write:materials` scope.
Remove the datasheet of a product
Removes the product's datasheet. This cannot be undone. A product without one answers `204` as well. Requires the `write:materials` scope.
Set a certificate of a product
Stores a certificate of a battery or an inverter, or puts another file in its place. Send a form (`multipart/form-data`) with a PDF in `file`. The grid operator's forms append it. Sending the file the product has changes nothing. Requires the `write:materials` scope.
Remove a certificate of a product
Removes a certificate of a battery or an inverter. This cannot be undone. A product without it answers `204` as well. Requires the `write:materials` scope.
Add a document to a product
Stores a document of the product, such as a manual or a warranty. Send a form (`multipart/form-data`) with a PDF in `file`; `name` and `description` are optional. Offers take their parts' documents over (`POST /v1/offers/{id}/documents/datasheets`).
Rename a document of a product
Changes the document's name or description; a field you leave out stays as it is. Offers that took the document over keep theirs. Requires the `write:materials` scope.
Remove a document from a product
Removes the document from the product. This cannot be undone. Offers that took it over keep theirs. Requires the `write:materials` scope.
Replace the file of a product's document
Puts another PDF in the document's place. Send a form (`multipart/form-data`) with it in `file`. The document keeps its id, name and description; offers that took it over keep the file they have. Sending the file it has changes nothing, a file another document of the product has is refused (`409 document_already_on_material`). Requires the `write:materials` scope.
Add a picture to a product
Stores a picture of the product. Send a form (`multipart/form-data`) with a JPEG, PNG or WebP of at most 5 MB in `file`. The planner, builder and configurator show it, so it is a public file. Send it in the size it is shown in, 1920 pixels are plenty: it is stored as it is. Customers see it at once, also with offers they have already.
Remove a picture from a product
Removes the picture from the product. This cannot be undone. Requires the `write:materials` scope.