---
agentTools:
  projectIndex: https://developers.uberflip.com/llms.txt
---

# Upload User Avatar

This endpoint accepts an image binary for the user avatar.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Uberflip API",
    "version": "2.1",
    "description": "Uberflip API",
    "contact": {
      "name": "Uberflip",
      "url": "https://developers.uberflip.com/",
      "email": "contact@uberflip.com"
    }
  },
  "servers": [
    {
      "url": "https://v2.api.uberflip.com"
    }
  ],
  "tags": [
    {
      "name": "USERS"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/users/{userId}/avatar": {
      "post": {
        "tags": [
          "USERS"
        ],
        "summary": "Upload User Avatar",
        "description": "This endpoint accepts an image binary for the user avatar.",
        "operationId": "upload-user-avatar",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The unique identifier of the user",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string",
                    "description": "File. The image binary to upload. Max. 200kb",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/user"
                },
                "examples": {
                  "Result": {
                    "value": {
                      "id": 3357,
                      "first_name": "User",
                      "last_name": "One",
                      "email": "userone@user.com",
                      "federation_id": null,
                      "avatar_url": "https://content.cdntwrk.com/files/YV91PTE2NjEzNSZtb2RpZmllZD0yMDF4LTExLTIwIDE0OjU0OjE0JnNpZz0wYjgzMzllZmE1MTJmOTBkM2UxMjVlMjY5MGFjM2U1Nw%253D%253D",
                      "calendly_url": null,
                      "twitter_handle": "userone",
                      "linkedin_profile_url": null,
                      "website_url": null,
                      "bio": "user biography",
                      "author_url_slug": "user-one",
                      "last_logged_in_at": null,
                      "last_logged_in_from": null,
                      "type": "primary",
                      "created_at": "2012-06-06T15:39:18-0400",
                      "modified_at": "2018-11-20T14:54:14-0500",
                      "lock_update": 0,
                      "lock_delete": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access token from /authorize endpoint"
      }
    },
    "schemas": {
      "user": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique user identifier"
          },
          "first_name": {
            "type": "string",
            "description": "The user first name"
          },
          "last_name": {
            "type": "string",
            "description": "The user last name"
          },
          "email": {
            "type": "string",
            "description": "The user email address"
          },
          "federation_id": {
            "type": "string",
            "description": "The user federation Id (SSO)",
            "nullable": true
          },
          "avatar_url": {
            "type": "string",
            "description": "The user avatar image URL",
            "nullable": true
          },
          "calendly_url": {
            "type": "string",
            "description": "The user Calendly URL",
            "nullable": true
          },
          "twitter_handle": {
            "type": "string",
            "description": "The user Twitter handle",
            "nullable": true
          },
          "linkedin_profile_url": {
            "type": "string",
            "description": "The user LinkedIn URL",
            "nullable": true
          },
          "website_url": {
            "type": "string",
            "description": "The user website URL",
            "nullable": true
          },
          "bio": {
            "type": "string",
            "description": "The user bio text",
            "nullable": true
          },
          "author_url_slug": {
            "type": "string",
            "description": "The user author page URL",
            "nullable": true
          },
          "last_logged_in_at": {
            "type": "string",
            "description": "The user last login date",
            "nullable": true
          },
          "last_logged_in_from": {
            "type": "string",
            "description": "The user last logged IP address",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "description": "The item created date",
            "format": "date-time"
          },
          "modified_at": {
            "type": "string",
            "description": "The item last modified date",
            "format": "date-time"
          },
          "lock_update": {
            "type": "integer",
            "description": "Whether the user can be updated or not",
            "nullable": true
          },
          "lock_delete": {
            "type": "integer",
            "description": "Whether the user can be deleted or not",
            "nullable": true
          },
          "update_item_publish_date": {
            "type": "integer",
            "description": "Whether the user will update the item's published date upon editing or not",
            "nullable": true
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 151,
      "2": 113,
      "3": 115,
      "4": 165,
      "5": 253,
      "6": 73,
      "7": 0,
      "8": 113,
      "9": 158,
      "10": 39,
      "11": 103
    }
  }
}
```