Users

Update user profile.

Changed on

Updates profile settings for the currently authenticated user. Use this to modify account preferences or personal information.

post/api/v1/user

Request

Request body multipart/form-data

profile_photostring binary

User profile photo

namestring

User name

Example request

{
  "profile_photo": "avatar.png",
  "name": "John Doe"
}

Response

Update user account info

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "created_at": "2023-04-30 16:43:53",
    "email": "user@domain.com",
    "id": 1,
    "current_team_id": 1,
    "name": "John Doe",
    "profile_photo_url": "https://app.customgpt.ai/user/1/profile_photo_url",
    "updated_at": "2023-04-30 16:43:53"
  }
}

Changes

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status