Mobile API v1

Documents and feedback

Upload and open learner documents, submit feedback and read coaching notes.

On this page

Call each function by its full path. A question mark marks an optional field.

mobile/v1/documents:beginUpload

mutation · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  uploadUrl: string
}

mobile/v1/documents:coachFeedback

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  messageId: string
  message: string
  rating: "up" | "down" | "report"
  note?: string
  source?: string
}
Response type
Result
{
  clientOpId: string
  ok: true
  feedbackId: string
  replayed: boolean
}

mobile/v1/documents:coachNotes

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  notes: Array<{
    noteId: string
    authorName: string
    body: string
    courseId: string | null
    activityId: string | null
    documentId: string | null
    createdAt: string
  }>
}

mobile/v1/documents:deleteDocument

mutation · Arguments
{
  expectedTenantId?: string
  documentId: string
}
Response type
Result
{
  documentId: string
  deleted: true
}

mobile/v1/documents:myDocuments

query · Arguments
{
  expectedTenantId?: string
}
Response type
Result
{
  documents: Array<{
    documentId: string
    title: string
    fileName: string
    mimeType: string | null
    sizeBytes: number | null
    createdAt: string
  }>
  upload: {
    maxBytes: number
    mimeTypes: Array<string>
  }
}

mobile/v1/documents:openDocument

query · Arguments
{
  expectedTenantId?: string
  documentId: string
}
Response type
Result
{
  documentId: string
  url: string
  fileName: string
  mimeType: string | null
}

mobile/v1/documents:saveDocument

mutation · Arguments
{
  expectedTenantId?: string
  clientOpId: string
  storageId: string
  title: string
  fileName: string
}
Response type
Result
{
  clientOpId: string
  document: {
    documentId: string
    title: string
    fileName: string
    mimeType: string | null
    sizeBytes: number | null
    createdAt: string
  }
  replayed: boolean
}

All API modules · OpenRPC 1.3.2 JSON