post https://platform.{env}.simpplr.com/v1/b2b/identity/users/files
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
andcoverImageId
to the file IDs returned in this API response.
Example request:
{
"useFor": "photo",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"mimeType": "image/jpeg",
"size": 1024000
}