updateAvatar
Replaces a specified user's avatar image with supplied image content. Requires profile update permission; use dry_run to validate arguments and preview the exact request before sending it.
Instructions
Replaces one user avatar image using the supplied image content. Images (PNG, JPEG, GIF, WebP) come back as image content, UTF-8 text files as text, and any other file (PDF, Office, ZIP) as an embedded base64 resource; files over 20 MB are refused. The request changes the stored avatar for the specified user and requires permission to update that profile. Use getAvatar to retrieve the current image; use patchUser for profile fields such as name or email. Effect: triggers a server-side action rather than a plain resource creation — whether repeating it is safe, a no-op, or rejected depends on the specific action; treat it as not guaranteed idempotent. Tip: set dry_run: true first to validate the arguments and preview the exact request without sending it to Polarion. The executor returns this preview as normal text, and as structured content when the tool declares an output schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The User ID. | |
| dry_run | No | If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it. | |
| requestBody | No | Avatar file data. |