cURL
curl --request POST \ --url https://api.quiva.ai/accounts/profile-image \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "file_name": "<string>", "file": "aSDinaTvuI8gbWludGxpZnk=", "content_type": "<string>", "is_chunk": true, "chunk_index": 123, "total_chunks": 123 } '
{ "message": "<string>" }
Uploads a profile image for the user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File name
Base64 encoded file content
Content type
Whether the file is being uploaded in chunks
Current chunk index
Total number of chunks
Profile image uploaded successfully