> ## 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.

# Create Entity Card Endpoint

> This API endpoint allows you to assign a new Connect card to Farmer or a Company within the supply chain system. By sending a POST request to the specified endpoint, you can add details for a new entity card.



## OpenAPI

````yaml post /supply-chains/entity-cards/
openapi: 3.0.1
info:
  title: Trace Connect API
  version: v1
servers:
  - url: http://localhost:3000/connect/v1
security:
  - Bearer: []
paths:
  /supply-chains/entity-cards/:
    post:
      tags:
        - supply-chains
      description: A viewset for viewing and editing EntityCard instances.
      operationId: supply-chains_entity-cards_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntityCard'
        required: true
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityCard'
components:
  schemas:
    EntityCard:
      required:
        - card
        - entity
      type: object
      properties:
        id:
          type: string
        card:
          $ref: '#/components/schemas/ConnectCard'
        updated_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        created_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        is_active:
          title: Is Active
          type: boolean
          readOnly: true
        creator:
          type: string
        updater:
          type: string
        entity:
          type: string
    ConnectCard:
      required:
        - card_id
      type: object
      properties:
        id:
          type: string
        card_id:
          title: Card id
          minLength: 1
          type: string
        updated_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        created_on:
          title: Updated On
          type: string
          format: date-time
          readOnly: true
        display_id:
          title: Display ID
          maxLength: 100
          type: string
          nullable: true
        creator:
          type: string
        updater:
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````