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

# Create draft RFQ

> Create a new RFQ in Draft status with minimal validation.
    
    **Required fields:**
    - client_id: Client requesting the quote
    - pic_id: Person in charge (staff member)
    
    **Optional fields:**
    - All dates are optional
    - Line items are optional (can save with 0 items)
    - Notes, references, etc.
    
    **Use this when:**
    - Saving work in progress
    - User hasn't filled all information yet
    - Planning to complete later



## OpenAPI

````yaml /api/openapi-cutmake.json post /api/v1/rfqs/draft
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/rfqs/draft:
    post:
      tags:
        - RFQs
      summary: Create draft RFQ
      description: |-
        Create a new RFQ in Draft status with minimal validation.
            
            **Required fields:**
            - client_id: Client requesting the quote
            - pic_id: Person in charge (staff member)
            
            **Optional fields:**
            - All dates are optional
            - Line items are optional (can save with 0 items)
            - Notes, references, etc.
            
            **Use this when:**
            - Saving work in progress
            - User hasn't filled all information yet
            - Planning to complete later
      operationId: create_draft_rfq_api_v1_rfqs_draft_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RFQCreateDraft'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RFQCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    RFQCreateDraft:
      properties:
        client_id:
          type: string
          title: Client Id
          description: Client ID (required)
        pic_id:
          type: string
          title: Pic Id
          description: Person in charge (User ID)
        ref_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Ref Id
        requested_by_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Requested By Id
        requested_response_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Requested Response Date
        planned_response_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Planned Response Date
        attachment_link:
          anyOf:
            - type: string
            - type: 'null'
          title: Attachment Link
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        line_items:
          items:
            $ref: '#/components/schemas/RFQLineItemCreate'
          type: array
          title: Line Items
      type: object
      required:
        - client_id
        - pic_id
      title: RFQCreateDraft
      description: Schema for creating a draft RFQ (minimal validation)
      example:
        client_id: client-uuid-123
        line_items: []
        note: Saving draft for later
        pic_id: user-uuid-456
    RFQCreateResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        document_id:
          type: string
          title: Document Id
        rfq_id:
          type: string
          title: Rfq Id
        status:
          type: string
          title: Status
      type: object
      required:
        - success
        - message
        - document_id
        - rfq_id
        - status
      title: RFQCreateResponse
      description: Response schema for RFQ creation
      example:
        document_id: vin_RFQ_0001
        message: RFQ created successfully
        rfq_id: uuid-123-456
        status: ' '
        success: true
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RFQLineItemCreate:
      properties:
        master_style_id:
          type: string
          title: Master Style Id
          description: Master Style ID (required)
        pic_id:
          type: string
          title: Pic Id
          description: Person in charge for this line item
        moq:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Moq
          description: Minimum Order Quantity
        sku_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sku Id
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
      type: object
      required:
        - master_style_id
        - pic_id
      title: RFQLineItemCreate
      description: Schema for creating a line item within an RFQ
      example:
        master_style_id: style-uuid-123
        moq: 100
        note: Need quote for red and blue variants
        pic_id: user-uuid-456
        sku_id: sku-uuid-789
    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
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````