> ## 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.

# Accept a pending AI proposal (ADMIN only)

> Same as Accept on the playbook page. An `update` proposal replaces the playbook's BODY with the draft's (or `editedContent`'s) body and keeps its frontmatter; the PRE-accept body is snapshotted into history (`proposal_accepted`), so the change stays revertable from the UI. A `create` proposal fills in its draft playbook at `targetTypePath` — address it by that playbook's name. The proposal is removed either way. Send `{}` to apply the stored draft as-is.



## OpenAPI

````yaml https://assist.i.moneyforward.com/api/v1/openapi.json post /api/v1/procedures/{name}/proposals/{proposalId}/accept
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}/accept:
    post:
      tags:
        - Procedures
      summary: Accept a pending AI proposal (ADMIN only)
      description: >-
        Same as Accept on the playbook page. An `update` proposal replaces the
        playbook's BODY with the draft's (or `editedContent`'s) body and keeps
        its frontmatter; the PRE-accept body is snapshotted into history
        (`proposal_accepted`), so the change stays revertable from the UI. A
        `create` proposal fills in its draft playbook at `targetTypePath` —
        address it by that playbook's name. The proposal is removed either way.
        Send `{}` to apply the stored draft as-is.
      operationId: postApiV1ProceduresByNameProposalsByProposalIdAccept
      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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                editedContent:
                  description: >-
                    Apply this text instead of the stored draft (the UI's
                    edit-before-accept). Only its BODY is applied; the playbook
                    keeps its frontmatter.
                  type: string
                  minLength: 1
                  maxLength: 65536
              additionalProperties: false
      responses:
        '200':
          description: The playbook after the proposal was applied
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  actionType:
                    type: string
                    enum:
                      - update
                      - create
                  procedure:
                    type: object
                    properties:
                      typePath:
                        type: string
                        description: Composite key used to get the full procedure
                      type:
                        type: string
                        description: Instruction type — always 'procedure' here
                      path:
                        type: string
                        description: Filename — last path segment
                      description:
                        type: string
                      category:
                        type: string
                      subcategory:
                        type: string
                      updatedAt:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                      proposalCount:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                        description: >-
                          PENDING AI improvement proposals on this playbook —
                          accepted or discarded ones are removed, so not counted
                      content:
                        type: string
                        description: Full procedure markdown body
                    required:
                      - typePath
                      - type
                      - path
                      - updatedAt
                      - proposalCount
                      - content
                    description: The playbook after the proposal was applied
                required:
                  - ok
                  - actionType
                  - procedure
        '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.