LeadsyGroup
  1. Users
LeadsyGroup
  • API V1
    • Users
      • Remove a user avatar
        DELETE
      • Upload a user avatar
        PUT
      • Create a user
        POST
      • Validate JWT
        GET
      • Find a user by email
        GET
      • Show all users
        GET
      • Login into the application
        POST
      • Reset user password
        POST
      • Show a user
        GET
      • Update a user
        PUT
    • Stages
      • List stages
    • Companies
      • Remove a company avatar
      • Upload a company avatar
      • Create company
      • List companies
      • Get an specific company
    • User Onboarding
      • Mark as completed the onboarding
      • Approve T&C
    • User Company Relation
      • Create user_accesses for a user
      • Show user_accesses for a user
      • Remove an specific user_access
      • Update user_accesses for a user
    • Accesses
      • List all available accesses
      • List access by id
    • Memberships
      • List available memberships
      • Info of a membership
    • Legal Terms
      • Current available for signature
      • Get legal terms per id
    • Invitations
      • Creates user invitation
      • Get pending invitations by email
    • Import
      • List of ImportFiles
      • Check status of an import
  1. Users

Upload a user avatar

PUT
/api/v1/users/avatar

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
User avatar updated successfully
Body

🟠401
🟠403
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/users/avatar' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user_id": 0,
    "avatar_base64": "string",
    "name": "string",
    "type": "string"
}'
Response Response Example
200 - Example 1
{
    "user": {
        "id": 0,
        "first_name": "string",
        "last_name": "string",
        "email": "user@example.com",
        "status": "string",
        "full_name": "string",
        "avatar_route": "string",
        "primary_access": {
            "id": 0,
            "company_id": 0,
            "access_id": 0,
            "access_name": "string"
        },
        "primary_company": {
            "id": 0,
            "name": "string",
            "default": true,
            "parent_company_id": 0
        }
    }
}
Modified at 2026-02-17 19:55:10
Previous
Remove a user avatar
Next
Create a user
Built with