Upload files for users

This API allows generation of upload URL for user photos and cover images. To set the photo on a user object,

  • Do a PUT to the response URL with image data returned.
  • The URL is valid for 5 minutes.
  • Call user update API (preferably PATCH) to set the photoFileId and coverImageId to the file IDs returned in this API response.

Example request:

{
  "useFor": "photo",
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "mimeType": "image/jpeg",
  "size": 1024000
}
Language
Credentials
OAuth2
Authenticate
URL
Click Try It! to start a request and see the response here!