Upload a Document

Updates the document information by passing the person ID and document ID
Upload a Document
 last updated: 
September 7, 2022

ENDPOINT

  1. PUT {{upload-url}}

You can get the Upload URL from the Create a Document response or Get Upload URL response.

REQUEST

  1. curl --location --request PUT '{{upload-url}}' \
  2. --header 'Content-Type: image/png’ \
  3. --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.