---
title: "Update user profile image"
method: POST
path: "/users/{userId}/profileimage"
tags: ["users"]
---

# Update user profile image

`POST /users/{userId}/profileimage`

Uploads an image to the user profile.

Uploading a profile image differs from Adding an Image to a Cell in the
following ways:
  * A **Content-Length** header is not required
  * Allowable file types are limited to: gif, jpg, and png
  * Maximum file size is determined by the following rules:
      * If you have not defined a custom size and the image is larger than 1050 x 1050 pixels, Smartsheet scales the image down to 1050 x 1050
      * If you have defined a custom size, Smartsheet uses that as the file size max
  * If the image is not square, Smartsheet uses a solid color to pad the image

## Headers

- `Content-Type` string

## Request body

- URLAttachmentRequest
  - `attachmentSubType` 'DOCUMENT' | 'DRAWING' | 'FOLDER' | 'PDF' | 'PRESENTATION' | 'SPREADSHEET' — Attachment sub type. **Note:** `"FOLDER"` type is for EGNYTE values--the rest are GOOGLE_DRIVE values.
  - `attachmentType` 'BOX_COM' | 'DROPBOX' | 'EGNYTE' | 'EVERNOTE' | 'FILE' | 'GOOGLE_DRIVE' | 'LINK' | 'ONEDRIVE' | 'TRELLO' — Attachment type. **Note:** `"DROPBOX"`, `"EGNYTE"`, and `"EVERNOTE"` aren't supported for Smartsheet.gov accounts.
  - `description` string
  - `name` string
  - `url` string

## Response `200`

Returns the result object.

- object
  - `message` 'PARTIAL_SUCCESS' | 'SUCCESS' — Message that indicates the outcome of the request. (One of `SUCCESS` or `PARTIAL_SUCCESS`.)
  - `resultCode` 0 | 3 — * '0' Success * '3' Partial Success of Bulk Operation
  - `data` UserProfileImageResponse[] — Updated User Properties
    - `email` string, email — User's primary email address.
    - `name` string — User's full name (read-only).
    - `firstName` string — User's first name.
    - `lastName` string — User's last name.
    - `profileImage` ProfileImage
      - `imageId` string — Unique image ID.
      - `height` integer — Image height.
      - `width` integer — Image width.
    - `id` number — User ID.

## Other responses

- `default` — Generic Error Payload

---

[API](https://skmtc.net/smartsheet/apis/smartsheet-openapi-reference.md) · [All operations](https://skmtc.net/smartsheet/apis/smartsheet-openapi-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartsheet/smartsheet-openapi-reference/versions/b4afda95fb51/schema)
