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

# Discard a pending AI proposal (ADMIN only)

> Same as Discard on the playbook page: the proposal is removed and nothing is applied. Discarding a `create` proposal also deletes its draft playbook while that draft is still empty and has no other proposal.



## OpenAPI

````yaml https://assist.i.moneyforward.com/api/v1/openapi.json post /api/v1/procedures/{name}/proposals/{proposalId}/discard
openapi: 3.1.0
info:
  title: Minabot Public API
  description: >-
    REST API for querying sessions, knowledge articles and playbooks, and for
    maintaining native knowledge articles and playbooks. Requires an API key
    issued from the Admina admin panel; every write endpoint requires an ADMIN
    key.


    ### Rate limits

    Not currently enforced at the HTTP layer. Respect upstream DynamoDB capacity
    when making bulk requests (keep concurrency under ~20 RPS per key).
  version: 1.0.0
  contact:
    name: Minabot
    url: https://github.com/moneyforward-i/minabot
servers:
  - url: https://assist.i.moneyforward.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/procedures/{name}/proposals/{proposalId}/discard:
    post:
      tags:
        - Procedures
      summary: Discard a pending AI proposal (ADMIN only)
      description: >-
        Same as Discard on the playbook page: the proposal is removed and
        nothing is applied. Discarding a `create` proposal also deletes its
        draft playbook while that draft is still empty and has no other
        proposal.
      operationId: postApiV1ProceduresByNameProposalsByProposalIdDiscard
      parameters:
        - in: path
          name: name
          schema:
            type: string
            minLength: 1
          required: true
          description: >-
            Filename (e.g. `vpn.md`) or the URL-encoded typePath (e.g.
            `procedure%23skills/triage/procedures/vpn.md`)
        - in: path
          name: proposalId
          schema:
            type: string
            minLength: 1
            maxLength: 100
          required: true
          description: The proposal's `id`, from a proposals list
      responses:
        '200':
          description: Discarded
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  success:
                    type: boolean
                    const: true
                  deletedDraft:
                    type: boolean
                    description: >-
                      True when a discarded `create` proposal also removed its
                      empty draft playbook row
                required:
                  - ok
                  - success
                  - deletedDraft
        '400':
          description: Invalid name or body
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '403':
          description: API key lacks ADMIN role
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '404':
          description: Playbook or proposal not found in this tenant
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '409':
          description: The playbook changed during the accept, or an import is in progress
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key created via the Admina admin panel (`Settings → API Keys →
        Create`). Format: `mb_live_<40-hex>`.

````

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