Set a certificate of a product
PUT/v1/materials/:type/:id/certificates/:certificate
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.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 413
- 415
- 429
- 500
The certificate's file.
validation_error: the body is no form, the file is missing or empty, or a field is not valid. message names the problem.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such product of this type in your catalog, or the type has no such certificate.
file_too_large: the file has more than 20 MiB.
file_type_not_allowed: the file is no PDF.
rate_limited: the API key has stored 1000 files within the hour. Try again after the seconds in the Retry-After header.
Response Headers
db_error: the database refused or failed the request. storage_error: the file could not be stored. message has the details.