cURL
Endpoints
Add or update user avatar
Adds or updates a user avatar.
POST
cURL
This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.Learn more about Box SDK versioning strategy.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The ID of the user.
Body
multipart/form-data
The image file to be uploaded to Box. Accepted file extensions are .jpg or .png. The maximum file size is 1MB.
Response
ok: Returns the pic_urls object with URLs to existing user avatars that were updated.
A resource holding URLs to the avatar uploaded to a Box application.
Represents an object with user avatar URLs.
