> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oneofnone.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch update users



## OpenAPI

````yaml post /v1/users/batch-update
openapi: 3.1.0
info:
  title: One of None API
  version: 1.0.0
  description: >-
    The One of None API manages product collections, registrations, short URLs,
    team operations, and rewards used by storefront integrations including
    Shopify discounts and redemption flows.
servers:
  - url: https://api.oneofnone.io
security:
  - ApiKeyAuth: []
paths:
  /v1/users/batch-update:
    post:
      summary: Batch update users
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchUpdateBody'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchUpdateResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BatchUpdateBody:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/UserData'
        csv:
          type: string
      required:
        - users
    BatchUpdateResponse:
      type: object
      properties:
        message:
          type: string
        count:
          type: number
        users:
          type: array
          items:
            $ref: '#/components/schemas/UserResponse'
      required:
        - message
        - count
        - users
    UserData:
      type: object
      properties:
        email:
          type: string
          format: email
        phone:
          type: string
        metadata:
          type: object
          additionalProperties: {}
      required:
        - email
    UserResponse:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
        phone:
          type:
            - string
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          additionalProperties: {}
        avatar:
          type:
            - object
            - 'null'
          properties:
            url:
              type:
                - string
                - 'null'
        app_id:
          type:
            - number
            - 'null'
        team_id:
          type:
            - string
            - 'null'
        last_login_at:
          type:
            - string
            - 'null'
        login_count:
          type:
            - number
            - 'null'
        created_at:
          type: string
        updated_at:
          type:
            - string
            - 'null'
      required:
        - id
        - email
        - created_at
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````