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

# Add Member

> Add an existing user to the organization with a specific role.

The invoker must be an **owner** of the organization. The target
`user_id` must already exist in Yertle — this endpoint does not
create users (use the `/invitations/accept` flow for that). To add
someone by email instead, issue an invite link.

Role must be one of `owner`, `editor`, or `viewer`.



## OpenAPI

````yaml post /orgs/{org_id}/members
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}/members:
    post:
      tags:
        - organizations
      summary: Add Member
      description: |-
        Add an existing user to the organization with a specific role.

        The invoker must be an **owner** of the organization. The target
        `user_id` must already exist in Yertle — this endpoint does not
        create users (use the `/invitations/accept` flow for that). To add
        someone by email instead, issue an invite link.

        Role must be one of `owner`, `editor`, or `viewer`.
      operationId: add_member_orgs__org_id__members_post
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddMemberRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AddMemberRequest:
      properties:
        user_id:
          type: string
          title: User Id
          description: User ID to add
        role:
          type: string
          enum:
            - owner
            - editor
            - viewer
          title: Role
          description: Member role
          default: editor
      type: object
      required:
        - user_id
      title: AddMemberRequest
      description: Request model for adding a member to organization.
    MessageResponse:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable status message
      type: object
      required:
        - message
      title: MessageResponse
      description: Minimal response carrying a human-readable message.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````