Skip to main content
POST
/
api
/
run
/
notes
/
mutations
/
batchApplyNoteOperations
batchApplyNoteOperations
curl --request POST \
  --url https://connvo-dev.convex.cloud/api/run/notes/mutations/batchApplyNoteOperations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {
    "meetingId": "meeting_123example",
    "operations": [
      {
        "operation": {
          "type": "insert",
          "position": 0,
          "content": "Meeting Notes - Q4 Planning\n\n"
        },
        "clientSequence": 10
      },
      {
        "operation": {
          "type": "insert",
          "position": 30,
          "content": "Attendees:\n- Alice\n- Bob\n\n"
        },
        "clientSequence": 11
      },
      {
        "operation": {
          "type": "insert",
          "position": 55,
          "content": "Agenda:\n1. Review Q3 results\n2. Plan Q4 objectives\n"
        },
        "clientSequence": 12
      }
    ],
    "expectedVersion": 5
  }
}'
{
  "status": "success",
  "errorMessage": "",
  "errorData": {},
  "value": {
    "success": true,
    "processed": 3,
    "failed": 0,
    "results": [
      {
        "serverSequence": 13,
        "transformedOperation": {
          "type": "insert",
          "position": 0,
          "content": "Meeting Notes - Q4 Planning\n\n"
        },
        "conflicts": []
      },
      {
        "serverSequence": 14,
        "transformedOperation": {
          "type": "insert",
          "position": 30,
          "content": "Attendees:\n- Alice\n- Bob\n\n"
        },
        "conflicts": []
      },
      {
        "serverSequence": 15,
        "transformedOperation": {
          "type": "insert",
          "position": 55,
          "content": "Agenda:\n1. Review Q3 results\n2. Plan Q4 objectives\n"
        },
        "conflicts": []
      }
    ],
    "newVersion": 6
  }
}

Authorizations

Authorization
string
header
required

Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
object