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

# Approve a proposal

> Creates the note, edited or as it is. Admins only.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/agent-memory/proposals/{proposal_id}/approve
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/agent-memory/proposals/{proposal_id}/approve:
    post:
      tags:
        - agent-memory
      summary: Approve a proposal
      description: >-
        Approves a proposal, edited or as it is, and creates the note. Admins
        only.


        **Authentication.** Source key with the `admin` scope, or a Console
        person token with the admin role.
      operationId: approve_proposal_v1_agent_memory_proposals__proposal_id__approve_post
      parameters:
        - in: path
          name: proposal_id
          required: true
          schema:
            format: uuid
            title: Proposal Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/ApproveProposalRequest'
                - type: 'null'
              title: Body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentNote'
          description: The note created.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ApproveProposalRequest:
      additionalProperties: false
      description: >-
        A person may edit the proposal before approving it; the edit passes the
        redactor again.
      properties:
        body:
          anyOf:
            - maxLength: 2000
              minLength: 1
              type: string
            - type: 'null'
          title: Body
        kind:
          anyOf:
            - $ref: '#/components/schemas/AgentNoteKind'
            - type: 'null'
        tags:
          anyOf:
            - items:
                pattern: ^[a-z0-9][a-z0-9_.:-]{0,63}$
                type: string
              maxItems: 8
              type: array
            - type: 'null'
          title: Tags
        title:
          anyOf:
            - maxLength: 120
              minLength: 1
              type: string
            - type: 'null'
          title: Title
        visibility:
          anyOf:
            - $ref: '#/components/schemas/AgentNoteVisibility'
            - type: 'null'
      title: ApproveProposalRequest
      type: object
    AgentNote:
      additionalProperties: false
      properties:
        body:
          title: Body
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        created_by:
          description: '`source:<id>` or `user:<id>`.'
          title: Created By
          type: string
        evidence:
          anyOf:
            - $ref: '#/components/schemas/Evidence'
            - type: 'null'
        kind:
          $ref: '#/components/schemas/AgentNoteKind'
        note_id:
          format: uuid
          title: Note Id
          type: string
        origin:
          $ref: '#/components/schemas/AgentNoteOrigin'
        source_id:
          description: The agent that owns the note.
          format: uuid
          title: Source Id
          type: string
        status:
          $ref: '#/components/schemas/AgentNoteStatus'
        supersedes_note_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: The version this one replaced; that one is `retired`.
          title: Supersedes Note Id
        tags:
          items:
            type: string
          title: Tags
          type: array
        title:
          title: Title
          type: string
        valid_until:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: After this moment the note leaves the block and the search.
          title: Valid Until
        version:
          minimum: 1
          title: Version
          type: integer
        visibility:
          $ref: '#/components/schemas/AgentNoteVisibility'
      required:
        - note_id
        - source_id
        - visibility
        - kind
        - title
        - body
        - origin
        - version
        - status
        - created_at
        - created_by
      title: AgentNote
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    AgentNoteKind:
      enum:
        - procedure
        - tool_note
        - process_note
        - pitfall
      title: AgentNoteKind
      type: string
    AgentNoteVisibility:
      enum:
        - source
        - vendor
        - space
      title: AgentNoteVisibility
      type: string
    Evidence:
      additionalProperties: false
      description: >-
        Where the note came from: an id only, never the text of the conversation
        or task.
      properties:
        conversation_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Conversation Id
        task_id:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Task Id
      title: Evidence
      type: object
    AgentNoteOrigin:
      enum:
        - agent
        - human
        - distilled
      title: AgentNoteOrigin
      type: string
    AgentNoteStatus:
      enum:
        - active
        - retired
      title: AgentNoteStatus
      type: string
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````