invantive documentation
Invantive Support ForumsLog In / Sign Up

MessageContextsByToken: Nextcloud itgen_ncl_messagecontextsbytoken_plural

read only REST

  • Catalog: Spreed
  • Schema: Spreed
  • Label: itgen_ncl_messagecontextsbytoken_plural

Get the context of a message

Can only retrieve data.

API Source

  • Endpoint: /ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context
  • Operation: get /ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context

Performance Characteristics

Characteristic Value
Average access latency (ms) 305
Full scan rows per minute 3,510

The result can be cached on the client.

Parameters

Name Data Type Required Default Documentation
apiVersion `` v1 Values: v1.
limit `` Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages)
messageId `` The focused message which should be in the "middle" of the returned context
threadId `` Limit the chat message list to a given thread
token ``
x-nextcloud-federation `` Set to 1 when the request is performed by another Nextcloud Server to indicate a federation request

Table Columns

The columns of the table MessageContextsByToken are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

Name Data Type Label Required Marks Documentation
actorDisplayName varchar2 itgen_ncl_actordisplayname filters on the platform, writable, actorDisplayName
actorId varchar2 itgen_ncl_actorid filters on the platform, writable, actorId
actorType varchar2 itgen_ncl_actortype filters on the platform, writable, actorType
deleted char itgen_ncl_deleted filters on the platform, writable, deleted
expirationTimestamp int64 itgen_ncl_expirationtimestamp filters on the platform, writable, expirationTimestamp
id int64 itgen_ncl_id filters on the platform, writable, id
isReplyable char itgen_ncl_isreplyable filters on the platform, writable, isReplyable
isThread char itgen_ncl_isthread filters on the platform, writable, isThread
lastEditActorDisplayName varchar2 itgen_ncl_lasteditactordisplayname filters on the platform, writable, lastEditActorDisplayName
lastEditActorId varchar2 itgen_ncl_lasteditactorid filters on the platform, writable, lastEditActorId
lastEditActorType varchar2 itgen_ncl_lasteditactortype filters on the platform, writable, lastEditActorType
lastEditTimestamp int64 itgen_ncl_lastedittimestamp filters on the platform, writable, lastEditTimestamp
markdown char itgen_ncl_markdown filters on the platform, writable, markdown
message varchar2 itgen_ncl_message filters on the platform, writable, message
messageParameters varchar2 itgen_ncl_messageparameters writable The JSON text of the nested object.
messageType varchar2 itgen_ncl_messagetype filters on the platform, writable, messageType
metaData_pinnedActorDisplayName varchar2 itgen_ncl_metadata_pinnedactordisplayname filters on the platform, writable, metaData.pinnedActorDisplayName Display name of the attendee that pinned the message - Required capability: pinned-messages
metaData_pinnedActorId varchar2 itgen_ncl_metadata_pinnedactorid filters on the platform, writable, metaData.pinnedActorId Actor ID of the attendee that pinned the message - Required capability: pinned-messages
metaData_pinnedActorType varchar2 itgen_ncl_metadata_pinnedactortype filters on the platform, writable, metaData.pinnedActorType Actor type of the attendee that pinned the message - Required capability: pinned-messages
metaData_pinnedAt int64 itgen_ncl_metadata_pinnedat filters on the platform, writable, metaData.pinnedAt Timestamp when the message was pinned - Required capability: pinned-messages
metaData_pinnedUntil int64 itgen_ncl_metadata_pinneduntil filters on the platform, writable, metaData.pinnedUntil Timestamp until when the message is pinned. If missing the message is pinned infinitely - Required capability: pinned-messages
metaData_threadId int64 itgen_ncl_metadata_threadid filters on the platform, writable, metaData.threadId Set when a thread is created with this message. If missing, no thread creation is associated with this message
metaData_threadTitle varchar2 itgen_ncl_metadata_threadtitle filters on the platform, writable, metaData.threadTitle Set when a thread is created with this message. If missing, no thread creation is associated with this message
reactions varchar2 itgen_ncl_reactions writable The JSON text of the nested object.
referenceId varchar2 itgen_ncl_referenceid filters on the platform, writable, referenceId
silent char itgen_ncl_silent filters on the platform, writable, silent
systemMessage varchar2 itgen_ncl_systemmessage filters on the platform, writable, systemMessage
threadId int64 itgen_ncl_threadid filters on the platform, writable, threadId
threadReplies int64 itgen_ncl_threadreplies filters on the platform, writable, threadReplies
threadTitle varchar2 itgen_ncl_threadtitle filters on the platform, writable, threadTitle
timestamp int64 itgen_ncl_timestamp filters on the platform, writable, timestamp
token varchar2 itgen_ncl_token filters on the platform, writable, token