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

# Create a one-off QC request

> Creates a QC request directly from a review checklist, with no associated document. Uses `crid` (a free-typed Creditor Reference ID) instead of a `file_requests` row.



## OpenAPI

````yaml /api-reference/qc/openapi.yaml post /v2/qc/requests
openapi: 3.0.0
info:
  title: QC API
  description: >-
    API for managing Quality Control checklists, requests, approving or
    rejecting requests, etc.
  version: 2.0.0
  contact:
    name: Slate API Support
    email: api-support@slate.inc
    url: https://slate.inc
servers:
  - url: https://api.slate.inc/qc
    description: Production
  - url: https://api.uat.slate.inc/qc
    description: UAT (staging)
security:
  - bearerAuth: []
paths:
  /v2/qc/requests:
    post:
      summary: Create a one-off QC request
      description: >-
        Creates a QC request directly from a review checklist, with no
        associated document. Uses `crid` (a free-typed Creditor Reference ID)
        instead of a `file_requests` row.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateQCRequest'
      responses:
        '201':
          description: QC Request created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QCRequestWithItems'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized or invalid permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateQCRequest:
      type: object
      required:
        - owner
        - crid
        - checklistId
      properties:
        owner:
          type: string
          description: The ID of the owner
        crid:
          type: string
          description: >-
            A free-typed Creditor Reference ID identifying the matter this
            one-off request is for. There is no associated document.
        checklistId:
          type: string
          format: uuid
          description: >-
            The ID of the review-type QC checklist to copy items from. Must
            reference an active checklist with `checklistType` of `review`.
        reviewee:
          type: string
          description: User ID of the person being reviewed
        notes:
          type: string
          description: Notes about the request
    QCRequestWithItems:
      type: object
      required:
        - id
        - status
        - createdOn
        - document
        - checklistItems
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the QC request
        review:
          $ref: '#/components/schemas/Review'
        createdOn:
          type: string
          format: date-time
          description: Timestamp when the QC request was created
        reviewCompletedOn:
          type: string
          format: date-time
          description: Timestamp when the QC request had its review completed
        reviewStartedOn:
          type: string
          format: date-time
          description: Timestamp when the QC request had its review started
        reviewedBy:
          type: string
          description: User ID that reviewed the QC request
        actors:
          type: array
          items:
            $ref: '#/components/schemas/QCRequestActor'
          description: >-
            Every actor (user) associated with this QC request across all roles,
            e.g. affiant, notary, reviewee.
        status:
          type: string
          enum:
            - approved
            - rejected
            - pending
        fileUrl:
          description: A URL where the file can be downloaded from
          type: string
          minLength: 1
        processName:
          type: string
          description: Display name of the associated QC process
        checklistName:
          type: string
          description: Display name of the associated QC checklist
        checklistVersion:
          type: string
          description: >-
            Version of the checklist that was active when the review was
            created, if any
        notes:
          type: string
          description: Notes about rework for the request
        document:
          $ref: '#/components/schemas/Document'
        checklistItems:
          type: array
          items:
            $ref: '#/components/schemas/QCRequestChecklistItem'
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: A human readable error message
    Review:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the review
        shortId:
          type: string
          description: Human-readable identifier for the review, e.g. `QC-7K3F9A`.
    QCRequestActor:
      type: object
      required:
        - userId
        - roleId
      properties:
        userId:
          type: string
          description: User ID of the person in this role on the QC request
        roleId:
          type: string
          description: Role identifier, e.g. `affiant`, `notary`, `reviewee`
    Document:
      type: object
      required:
        - id
        - templates
      properties:
        id:
          type: string
          format: uuid
          description: The ID of the document that the QC request is for
        matterReference:
          type: string
          description: >
            The matter reference (CRID) of the matter the document belongs to.
            Absent for review requests.
        preparedBy:
          type: string
          description: The user ID for the user that prepared the document
        preparedOn:
          type: string
          format: date-time
          description: The timestamp when the document was prepared
        signedBy:
          type: string
          format: uuid
          description: The user ID for the user that signed the document
        signedOn:
          type: string
          format: date-time
          description: >-
            The timestamp when the document was signed (and notarized, if
            applicable)
        firmId:
          type: string
          description: The firm identifier that the document is assigned to
        templates:
          type: array
          items:
            $ref: '#/components/schemas/Template'
    QCRequestChecklistItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the QC checklist item
        createdOn:
          type: string
          format: date-time
          description: Timestamp when the QC checklist item was created
        displayName:
          type: string
          description: Name of the QC checklist item
        description:
          type: string
          description: Description of the QC checklist item
        status:
          type: string
          enum:
            - approved
            - rejected
            - pending
            - not_applicable
        roleId:
          type: string
          description: Unique identifier of a QC checklist role assigned to item
        completedBy:
          type: string
          description: User ID that completed the QC checklist item
        group:
          type: string
          description: >
            The precomputed display label for this item's group and position
            within it (e.g. `A1`, `1-1`), for `review` type requests. Empty when
            the item has no group.
        allowNA:
          type: boolean
          description: >-
            Whether reviewers can mark this item Not Applicable. Only applicable
            to `review` type requests.
        reviewerNote:
          type: string
          description: >-
            Reviewer-entered note explaining a rejected item. Only applicable to
            `review` type requests.
    Template:
      type: object
      required:
        - id
        - filename
        - displayName
        - signatureRequired
        - notaryRequired
      properties:
        id:
          type: string
          description: The template ID that was used to generate the document
          format: uuid
        filename:
          type: string
          description: The filename or internal reference identifier for the template
        displayName:
          type: string
          description: The user-friendly display name for the template
        signatureRequired:
          type: boolean
          description: If the template requires a signature
        notaryRequired:
          type: boolean
          description: If the template requires a notary to sign in addition to the signer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Owner-scoped bearer token. The `owner` a request is scoped to is derived
        from the token; list endpoints also take an explicit `owner` query
        parameter your token must be authorized to read.

````