> ## 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 a motion

> Update fields on an existing motion



## OpenAPI

````yaml post /api/v2/motion/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/motion/update:
    post:
      tags:
        - Motion
      summary: Update a motion
      description: Update fields on an existing motion
      operationId: updateMotion
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                oId:
                  type: string
                  description: Motion oId to update
                name:
                  type: string
                  description: New name
                description:
                  type: string
                  description: New description
                offeringId:
                  type: string
                  description: New offering oId
                motionType:
                  type: string
                  enum:
                    - NET_NEW
                    - UPSELL
                    - CROSS_SELL
                    - CONVERT_FREE_TO_PAID
                    - RENEW_AND_RETAIN
                    - DISPLACE_INCUMBENT
                  description: New motion type
                data:
                  type: object
                  properties:
                    overview:
                      type: string
                      default: ''
                    additionalContext:
                      type: string
                      default: ''
                    attachedSources:
                      type: array
                      items:
                        type: object
                        properties:
                          type:
                            type: string
                          value:
                            type: string
                          displayValue:
                            type: string
                        required:
                          - type
                          - value
                      default: []
                  description: Updated motion data
              required:
                - oId
      responses:
        '200':
          description: Updated motion
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/Motion'
                required:
                  - _metadata
                  - data
      deprecated: false
components:
  schemas:
    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
    Motion:
      type: object
      properties:
        oId:
          type: string
          description: Motion oId
        name:
          type: string
          description: Motion name
        description:
          type: string
          description: Motion description
        offering:
          type: object
          properties:
            oId:
              type: string
            type:
              type: string
              enum:
                - PRODUCT
                - SERVICE
                - SOLUTION
            name:
              type: string
            description:
              type: string
              nullable: true
          required:
            - oId
            - type
            - name
        motionType:
          type: string
          enum:
            - NET_NEW
            - UPSELL
            - CROSS_SELL
            - CONVERT_FREE_TO_PAID
            - RENEW_AND_RETAIN
            - DISPLACE_INCUMBENT
          description: Motion type
        data:
          type: object
          properties:
            overview:
              type: string
              default: ''
            additionalContext:
              type: string
              default: ''
            attachedSources:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                  value:
                    type: string
                  displayValue:
                    type: string
                required:
                  - type
                  - value
              default: []
        defaultPlaybookOId:
          type: string
          nullable: true
          description: Default playbook oId
        createdAt:
          type: string
          nullable: true
          description: Creation date
        updatedAt:
          type: string
          nullable: true
          description: Updated date
      required:
        - oId
        - name
        - offering
        - motionType
        - data
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````