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

# Preview For User



## OpenAPI

````yaml /openapi.json post /v1/workspaces/{workspaceId}/users/{userId}/projects/preview
openapi: 3.1.0
info:
  title: Specurate API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://app.specurate.com/api
    description: API Server
security: []
tags: []
paths:
  /v1/workspaces/{workspaceId}/users/{userId}/projects/preview:
    post:
      tags:
        - User Projects
      summary: Preview For User
      operationId: UserProjectsController_previewForUser_v1
      parameters:
        - name: userId
          required: true
          in: path
          schema:
            type: string
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetUserProjectsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemberProjectAccessPreviewResponseDto'
components:
  schemas:
    SetUserProjectsDto:
      type: object
      properties:
        version:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        projectIds:
          maxItems: 500
          type: array
          items:
            type: string
            pattern: ^[1-9]\d{0,18}$
        allProjects:
          type: boolean
        projectRegionKeys:
          default: []
          maxItems: 100
          type: array
          items:
            type: string
            pattern: ^[a-z][a-z0-9_]{0,63}$
        projectLocationIds:
          default: []
          maxItems: 500
          type: array
          items:
            type: string
            pattern: ^[1-9]\d{0,18}$
        viewOnlyProjectIds:
          maxItems: 500
          type: array
          items:
            type: string
            pattern: ^[1-9]\d{0,18}$
      required:
        - version
        - projectIds
        - allProjects
      additionalProperties: false
    MemberProjectAccessPreviewResponseDto:
      type: object
      properties:
        gaining:
          type: array
          items:
            $ref: '#/components/schemas/MemberProjectAccessPreviewProjectResponseDto'
        losing:
          type: array
          items:
            $ref: '#/components/schemas/MemberProjectAccessLossResponseDto'
        retained:
          type: array
          items:
            $ref: '#/components/schemas/MemberProjectAccessPreviewProjectResponseDto'
        levelChanges:
          type: array
          items:
            $ref: '#/components/schemas/MemberProjectAccessLevelChangeResponseDto'
      required:
        - gaining
        - losing
        - retained
        - levelChanges
    MemberProjectAccessPreviewProjectResponseDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
    MemberProjectAccessLossResponseDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        releasesLead:
          type: boolean
      required:
        - id
        - name
        - releasesLead
    MemberProjectAccessLevelChangeResponseDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        from:
          type: string
          enum:
            - edit
            - view
        to:
          type: string
          enum:
            - edit
            - view
      required:
        - id
        - name
        - from
        - to

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.