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

# Proposals you can see

> Changes waiting on a decision, newest first, for the repositories
the registry gave you.



## OpenAPI

````yaml get /api/repo-proposals
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/repo-proposals:
    get:
      tags:
        - Code proposals
      summary: Proposals you can see
      description: |-
        Changes waiting on a decision, newest first, for the repositories
        the registry gave you.
      operationId: list_proposals_api_repo_proposals_get
      parameters:
        - name: repo_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only this repository.
            title: Repo Id
          description: Only this repository.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only this status.
            title: Status
          description: Only this status.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeProposalList'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    CodeProposalList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/CodeProposal'
          type: array
          title: Items
      type: object
      required:
        - items
      title: CodeProposalList
      description: A page of proposals.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
    CodeProposal:
      properties:
        id:
          type: string
          title: Id
        repo_id:
          type: string
          title: Repo Id
        repo_name:
          type: string
          title: Repo Name
          default: ''
        remote:
          anyOf:
            - type: string
            - type: 'null'
          title: Remote
        provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider
        repo_version:
          type: string
          title: Repo Version
          default: ''
        owner:
          type: string
          title: Owner
        title:
          type: string
          title: Title
        summary:
          type: string
          title: Summary
          default: ''
        base_ref:
          type: string
          title: Base Ref
          default: ''
        branch_name:
          type: string
          title: Branch Name
          default: ''
        status:
          type: string
          title: Status
        created_at:
          type: string
          title: Created At
        decided_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided By
        decided_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided At
        decided_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Decided Reason
        external_url:
          anyOf:
            - type: string
            - type: 'null'
          title: External Url
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        edits:
          items:
            $ref: '#/components/schemas/CodeProposalEdit'
          type: array
          title: Edits
      type: object
      required:
        - id
        - repo_id
        - owner
        - title
        - status
        - created_at
      title: CodeProposal
      description: A proposal as a page reads it.
    CodeProposalEdit:
      properties:
        path:
          type: string
          maxLength: 1024
          title: Path
          description: Relative to the repository root, e.g. 'api/docker/Dockerfile'.
        operation:
          type: string
          enum:
            - create
            - modify
            - delete
          title: Operation
          description: What this edit does to the file.
          default: modify
        find:
          anyOf:
            - type: string
            - type: 'null'
          title: Find
          description: The exact text to replace. A modify needs one.
        replace:
          anyOf:
            - type: string
            - type: 'null'
          title: Replace
          description: What to put in its place. Empty removes the text.
        replace_all:
          type: boolean
          title: Replace All
          description: Replace every occurrence. Otherwise `find` must be unique.
          default: false
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
          description: A new file's whole content. Only for a create.
        bytes:
          type: integer
          title: Bytes
          description: How large this edit is.
          default: 0
        diff:
          type: string
          title: Diff
          description: Unified diff against the file today.
          default: ''
        stale:
          type: boolean
          title: Stale
          description: True when the anchor no longer matches.
          default: false
      type: object
      required:
        - path
      title: CodeProposalEdit
      description: |-
        One file a proposal changes.

        A `modify` is an anchor — `find` and `replace` — resolved against the
        file as it is, not a copy of the file. Only a `create` carries
        `content`, because there is nothing to anchor to in a file that does
        not exist yet.
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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