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

# Add Organization Members

> Bulk add users to one or more organizations within your enterprise

Requires an enterprise admin personal API key.

This endpoint allows you to add multiple users to multiple organizations in a single API call. It's designed for efficient bulk operations when managing organization memberships at scale.


## OpenAPI

````yaml /v2-openapi.yaml POST /v2/enterprise/organizations/{org_id}/members
openapi: 3.1.0
info:
  description: Devin v2 API with Personal API Keys for Enterprise Admins
  title: Devin API v2
  version: 2.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v2/enterprise/organizations/{org_id}/members:
    post:
      tags:
        - organizations
      summary: Enterprise Organizations Member Addition Endpoint
      description: >-
        Bulk add users to an organization


        Note: Copied from app.routers.enterprises.py. Needs to be refactored
        properly

        into the membership sdk.
      operationId: >-
        enterprise_organizations_member_addition_endpoint_v2_enterprise_organizations__org_id__members_post
      parameters:
        - in: path
          name: org_id
          required: true
          schema:
            title: Org Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnterpriseBulkOrgMembersUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    EnterpriseBulkOrgMembersUpdate:
      properties:
        group_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Group Names
        org_ids:
          items:
            type: string
          title: Org Ids
          type: array
        org_role:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Role
        user_ids:
          items:
            type: string
          title: User Ids
          type: array
      required:
        - user_ids
        - org_ids
      title: EnterpriseBulkOrgMembersUpdate
      type: object
    SuccessResponse:
      properties:
        status:
          default: success
          title: Status
          type: string
      title: SuccessResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: Personal API Key (apk_user_*) for Enterprise Admins only
      scheme: bearer
      type: http

````