> ## Documentation Index
> Fetch the complete documentation index at: https://ajuda.memberkit.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualiza um membro

> Atualiza um membro específico através do ID ou email.

Atualiza os dados básicos de um membro. Use esta rota para alterar senha, endereço de email, e outros campos básicos do perfil.

#### 🚨 Importante

1. Esta rota não realiza alteração de matrículas.
2. Use a rota `POST /api/v1/users` para gestão de acesso.
3. Use o parâmetro `blocked` apenas para banimento permanente.


## OpenAPI

````yaml PUT /api/v1/users/{id}
openapi: 3.1.0
info:
  title: MemberKit
  description: ''
  version: 1.0.0
servers: []
security:
  - apikey-query-api_key: []
tags:
  - name: academies
  - name: courses
  - name: lessons
  - name: memberships
  - name: classrooms
  - name: rankings
  - name: users
  - name: scores
  - name: quizzes
  - name: hooks
  - name: comments
paths:
  /api/v1/users/{id}:
    put:
      tags:
        - users
      summary: Atualiza um membro
      description: Atualiza um membro específico através do ID ou email.
      parameters:
        - name: id
          in: path
          description: ID do membro.
          required: true
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                full_name:
                  type: string
                  description: Nome completo.
                email:
                  type: string
                  format: email
                  description: Endereço de email.
                password:
                  type: string
                  description: Senha.
                  minLength: 6
                bio:
                  type: string
                  description: Bio.
                unlimited:
                  type: boolean
                  description: Acesso ilimitado.
                blocked:
                  type: boolean
                  description: Status de banimento.
                time_zone:
                  type: string
                  description: Fuso horário.
                metadata:
                  type: object
                  description: Metadados.
                  properties:
                    cpf_cnpj:
                      type: string
                      description: CPF/CNPJ.
                    phone_local_code:
                      type: string
                      description: DDD do telefone ou código do país.
                    phone_number:
                      type: string
                      description: Número de telefone.
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDetails'
          headers: {}
      deprecated: false
      security:
        - apikey-query-api_key: []
components:
  schemas:
    UserDetails:
      type: object
      properties:
        id:
          type: integer
        full_name:
          type: string
        email:
          type: string
          format: email
        bio:
          type:
            - string
            - 'null'
        profile_image_url:
          type:
            - string
            - 'null'
        blocked:
          type: boolean
        unlimited:
          type: boolean
        sign_in_count:
          type: integer
        current_sign_in_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        metadata:
          type: object
          properties:
            cpf_cnpj:
              type: string
            phone_local_code:
              type: string
            phone_number:
              type: string
        enrollments:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              status:
                type: string
                enum:
                  - inactive
                  - pending
                  - active
                  - expired
              course_id:
                type: integer
              classroom_id:
                type: integer
              expire_date:
                type:
                  - string
                  - 'null'
                format: date
            required:
              - id
              - status
              - course_id
              - classroom_id
              - expire_date
        memberships:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              status:
                type: string
                enum:
                  - inactive
                  - pending
                  - active
                  - expired
              membership_level_id:
                type: integer
              expire_date:
                type:
                  - string
                  - 'null'
                format: date-time
            required:
              - id
              - status
              - membership_level_id
              - expire_date
      required:
        - id
        - full_name
        - email
        - bio
        - profile_image_url
        - blocked
        - unlimited
        - sign_in_count
        - current_sign_in_at
        - created_at
        - updated_at
  securitySchemes:
    apikey-query-api_key:
      type: apiKey
      in: query
      name: api_key

````