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

# Accept Suggestion

> Accept a pending entity suggestion. This APPLIES the proposed change — for an 'add' suggestion it creates the new library entity; for a 'refine' suggestion it updates the existing one. Preview first with suggestion/get. Returns the resulting library entity.



## OpenAPI

````yaml post /api/v2/suggestion/accept
openapi: 3.0.0
info:
  version: 1.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/suggestion/accept:
    post:
      tags:
        - Suggestions
      summary: Accept Suggestion
      description: >-
        Accept a pending entity suggestion. This APPLIES the proposed change —
        for an 'add' suggestion it creates the new library entity; for a
        'refine' suggestion it updates the existing one. Preview first with
        suggestion/get. Returns the resulting library entity.
      operationId: acceptSuggestion
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                oId:
                  type: string
                  description: >-
                    The suggestion oId to accept (from suggestion/list). Only
                    pending suggestions can be accepted.
                  example: esug_abc123
                reason:
                  type: string
                  description: Optional note recording why the suggestion was accepted.
              required:
                - oId
      responses:
        '200':
          description: The accepted suggestion and resulting entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/SuggestionAcceptResult'
                required:
                  - _metadata
                  - data
        '400':
          description: Suggestion is not pending or cannot be accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Suggestion not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
    SuggestionAcceptResult:
      allOf:
        - $ref: '#/components/schemas/SuggestionSummary'
        - type: object
          properties:
            resultingEntityOId:
              type: string
              nullable: true
              description: oId of the library entity created or updated by accepting.
            resultingEntityName:
              type: string
              nullable: true
              description: Name of the resulting library entity, when resolvable.
          required:
            - resultingEntityOId
            - resultingEntityName
    SuggestionSummary:
      type: object
      properties:
        oId:
          type: string
          description: The suggestion's oId.
        status:
          type: string
          enum:
            - draft
            - pending
            - accepted
            - rejected
            - dismissed
            - expired
          description: Lifecycle status after the operation.
        changeType:
          type: string
          enum:
            - add
            - refine
          description: >-
            Friendly framing of the change: 'add' creates a brand new library
            entity; 'refine' changes an existing one.
          example: add
        suggestionType:
          type: string
          enum:
            - create_entity
            - update_entity
            - generate_entity
            - refine_entity
            - link_entities
          description: The raw underlying suggestion type.
        targetEntityType:
          type: string
          enum:
            - Product
            - Service
            - Solution
            - Persona
            - UseCase
            - Reference
            - Segment
            - Competitor
            - Alternative
            - BuyingTrigger
            - CoreFeature
            - Objection
            - ProofPoint
            - Playbook
            - Agent
            - Hypothesis
            - BrandVoice
            - Resource
          description: The library entity type being added or refined.
        targetEntityOId:
          type: string
          nullable: true
          description: oId of the entity being refined (null for 'add').
      required:
        - oId
        - status
        - changeType
        - suggestionType
        - targetEntityType
        - targetEntityOId
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````