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

# Link Note To Superbill

> Attach a note to an existing Super Bill (upsert / move).

Backs the chooser dialog's "Link to existing" branch and its "create then
move" branch. A note links to at most one bill (UNIQUE(note_id)), so:
  - unlinked note        → insert the link;
  - already on this bill → no-op;
  - on a *different* bill → move the single link in place, so relinking to
    another bill re-resolves `by-note` there (rather than being ignored).



## OpenAPI

````yaml post /billing/superbill/{superbill_id}/notes/{note_id}
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /billing/superbill/{superbill_id}/notes/{note_id}:
    post:
      tags:
        - Superbills
      summary: Link Note To Superbill
      description: >-
        Attach a note to an existing Super Bill (upsert / move).


        Backs the chooser dialog's "Link to existing" branch and its "create
        then

        move" branch. A note links to at most one bill (UNIQUE(note_id)), so:
          - unlinked note        → insert the link;
          - already on this bill → no-op;
          - on a *different* bill → move the single link in place, so relinking to
            another bill re-resolves `by-note` there (rather than being ignored).
      operationId: >-
        link_note_to_superbill_billing_superbill__superbill_id__notes__note_id__post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: superbill_id
          in: path
          required: true
          schema:
            type: string
            title: Superbill Id
        - name: note_id
          in: path
          required: true
          schema:
            type: string
            title: Note Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: boolean
                title: >-
                  Response Link Note To Superbill Billing Superbill  Superbill
                  Id  Notes  Note Id  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````