Loading...
Upload a photo for a user. This function is only available through a JWT token, and is not available for all users.
User ID
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/users/{userId}/photo', { method: 'POST', headers: { "Content-Type": "multipart/form-data" }, body: JSON.stringify({ "photo": "binary" }), }); const data = await response.json();
{ "success": false, "error": "text", "url": "text" }