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

# Update Buying Trigger

> Update an existing buying trigger



## OpenAPI

````yaml post /api/v2/buying-trigger/update
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/buying-trigger/update:
    post:
      tags:
        - Buying Trigger
      summary: Update Buying Trigger
      description: Update an existing buying trigger
      operationId: updateBuyingTrigger
      requestBody:
        description: Buying trigger update input
        content:
          application/json:
            schema:
              type: object
              properties:
                oId:
                  type: string
                  minLength: 1
                  description: The ID of the buying trigger to update
                  example: btr_1234
                name:
                  type: string
                  description: The name of the buying trigger
                internalName:
                  type: string
                  description: The internal name of the buying trigger
                description:
                  type: string
                  description: A description of the buying trigger
                whyThisCreatesUrgency:
                  type: array
                  items:
                    type: string
                whoFeelsThisMost:
                  type: array
                  items:
                    type: string
                costOfInaction:
                  type: array
                  items:
                    type: string
                howWeHelpInThisMoment:
                  type: array
                  items:
                    type: string
                customFields:
                  allOf:
                    - $ref: '#/components/schemas/CustomDataFields'
                    - description: Custom fields for additional buying trigger information
              required:
                - oId
      responses:
        '200':
          description: Buying trigger updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    type: object
                    properties:
                      oId:
                        type: string
                      createdAt:
                        type: string
                        nullable: true
                      updatedAt:
                        type: string
                        nullable: true
                      deletedAt:
                        type: string
                        nullable: true
                      archivedAt:
                        type: string
                        nullable: true
                      name:
                        type: string
                      internalName:
                        type: string
                      description:
                        type: string
                      active:
                        type: boolean
                        default: true
                      data:
                        type: object
                        nullable: true
                        properties:
                          whyThisCreatesUrgency:
                            type: array
                            items:
                              type: string
                          whoFeelsThisMost:
                            type: array
                            items:
                              type: string
                          costOfInaction:
                            type: array
                            items:
                              type: string
                          howWeHelpInThisMoment:
                            type: array
                            items:
                              type: string
                          customFields:
                            $ref: '#/components/schemas/CustomDataFields'
                        required:
                          - whyThisCreatesUrgency
                          - whoFeelsThisMost
                          - costOfInaction
                          - howWeHelpInThisMoment
                      user:
                        type: object
                        nullable: true
                        properties:
                          oId:
                            type: string
                            nullable: true
                          firstName:
                            type: string
                            nullable: true
                            description: >-
                              The first name of the user who created the buying
                              trigger
                            example: John
                          lastName:
                            type: string
                            nullable: true
                            description: >-
                              The last name of the user who created the buying
                              trigger
                            example: Doe
                      workspace:
                        type: object
                        nullable: true
                        properties:
                          oId:
                            type: string
                            nullable: true
                    required:
                      - oId
                      - createdAt
                      - updatedAt
                      - name
                      - internalName
                      - description
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Buying trigger not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    CustomDataFields:
      type: array
      items:
        $ref: '#/components/schemas/CustomDataFieldItem'
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          description: API usage
          example: 0
        requestId:
          type: string
          description: Request ID
          example: requestId
        message:
          type: string
          description: Message
          example: message
        timestamp:
          type: string
          description: Timestamp
          example: '2021-01-01T00:00:00.000Z'
      required:
        - requestId
        - timestamp
    CustomDataFieldItem:
      type: object
      properties:
        title:
          type: string
        value:
          type: array
          items:
            type: string
      required:
        - title
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````