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

# Add Company Member Endpoint

> Add Company Member endpoint allows you to add a new member to a specific company within the supply chain by making a POST request. Provide the required information in the request body, including user details and the type of membership.



## OpenAPI

````yaml post /supply-chains/company-members/
openapi: 3.0.1
info:
  title: Trace Connect API
  version: v1
servers:
  - url: http://localhost:3000/connect/v1
security:
  - Bearer: []
paths:
  /supply-chains/company-members/:
    post:
      tags:
        - supply-chains
      description: A viewset for viewing and editing CompanyMember instances.
      operationId: supply-chains_company-members_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyMemer'
        required: true
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyMemer'
components:
  schemas:
    CompanyMemer:
      required:
        - company
        - user
      type: object
      properties:
        id:
          type: string
        user:
          $ref: '#/components/schemas/User'
        updated_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        created_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        type:
          title: Member Type
          type: string
          enum:
            - SUPER_ADMIN
            - ADMIN
            - REPORTER
        is_active:
          title: Is Member Active
          type: boolean
        creator:
          type: string
        updater:
          type: string
        company:
          type: string
    User:
      type: object
      properties:
        id:
          type: string
        first_name:
          title: First name
          maxLength: 150
          type: string
        last_name:
          title: Last name
          maxLength: 150
          type: string
        email:
          title: Email address
          maxLength: 254
          type: string
          format: email
        dob:
          title: Date Of Birth
          type: string
          format: date
          nullable: true
        phone:
          title: Phone
          type: string
          nullable: true
        address:
          title: Address
          maxLength: 2000
          type: string
          nullable: true
        image:
          title: Photo
          type: string
          format: uri
          nullable: true
          readOnly: true
        updated_email:
          title: Last Updated Email
          maxLength: 254
          type: string
          format: email
          nullable: true
        managing_entitys:
          uniqueItems: true
          type: array
          readOnly: true
          items:
            type: string
        default_entity:
          type: string
        accepted_policy:
          type: string
        policy_accepted:
          title: Policy accepted
          type: string
          readOnly: true
        current_policy:
          title: Current policy
          type: string
          readOnly: true
        language:
          title: Language
          minLength: 1
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````