ENDPOINT
- PUT {{upload-url}}
You can get the Upload URL from the Create a Document response or Get Upload URL response.
REQUEST
- curl --location --request PUT '{{upload-url}}' \
- --header 'Content-Type: image/png’ \
- --data-binary '@/Users/johndoe/Desktop/license.png’
List of allowed MIME types for documents:
- image/jpeg
- image/png
- application/pdf
RESPONSE
200 OK success status response code confirms that the document was successfully uploaded. You can check for it in the Person in the Solid Dashboard. Or you can Retrieve a Document.