post
https://{endpoint}/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 the image data returned, including the Authorization: Bearer <access_token> header
- The URL is valid for 5 minutes.
- Call user update API (preferably PATCH) to set the
photoFileIdandcoverImageIdto the file IDs returned in this API response.
Example request:
{
"useFor": "photo",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"mimeType": "image/jpeg",
"size": 1024000
}