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 |
|---|---|---|---|---|
api |
`` | v1 | Values: v1. | |
limit |
`` | Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages) | ||
message |
`` | The focused message which should be in the "middle" of the returned context | ||
thread |
`` | Limit the chat message list to a given thread | ||
token |
`` | |||
x- |
`` | 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 |
|---|---|---|---|---|---|
actor |
varchar2 |
itgen_ncl_actordisplayname | filters on the platform, writable, actor |
||
actor |
varchar2 |
itgen_ncl_actorid | filters on the platform, writable, actor |
||
actor |
varchar2 |
itgen_ncl_actortype | filters on the platform, writable, actor |
||
deleted |
char |
itgen_ncl_deleted | filters on the platform, writable, deleted |
||
expiration |
int64 |
itgen_ncl_expirationtimestamp | filters on the platform, writable, expiration |
||
id |
int64 |
itgen_ncl_id | filters on the platform, writable, id |
||
is |
char |
itgen_ncl_isreplyable | filters on the platform, writable, is |
||
is |
char |
itgen_ncl_isthread | filters on the platform, writable, is |
||
last |
varchar2 |
itgen_ncl_lasteditactordisplayname | filters on the platform, writable, last |
||
last |
varchar2 |
itgen_ncl_lasteditactorid | filters on the platform, writable, last |
||
last |
varchar2 |
itgen_ncl_lasteditactortype | filters on the platform, writable, last |
||
last |
int64 |
itgen_ncl_lastedittimestamp | filters on the platform, writable, last |
||
markdown |
char |
itgen_ncl_markdown | filters on the platform, writable, markdown |
||
message |
varchar2 |
itgen_ncl_message | filters on the platform, writable, message |
||
message |
varchar2 |
itgen_ncl_messageparameters | writable | The JSON text of the nested object. | |
message |
varchar2 |
itgen_ncl_messagetype | filters on the platform, writable, message |
||
meta |
varchar2 |
itgen_ncl_metadata_pinnedactordisplayname | filters on the platform, writable, meta |
Display name of the attendee that pinned the message - Required capability: pinned- |
|
meta |
varchar2 |
itgen_ncl_metadata_pinnedactorid | filters on the platform, writable, meta |
Actor ID of the attendee that pinned the message - Required capability: pinned- |
|
meta |
varchar2 |
itgen_ncl_metadata_pinnedactortype | filters on the platform, writable, meta |
Actor type of the attendee that pinned the message - Required capability: pinned- |
|
meta |
int64 |
itgen_ncl_metadata_pinnedat | filters on the platform, writable, meta |
Timestamp when the message was pinned - Required capability: pinned- |
|
meta |
int64 |
itgen_ncl_metadata_pinneduntil | filters on the platform, writable, meta |
Timestamp until when the message is pinned. If missing the message is pinned infinitely - Required capability: pinned- |
|
meta |
int64 |
itgen_ncl_metadata_threadid | filters on the platform, writable, meta |
Set when a thread is created with this message. If missing, no thread creation is associated with this message | |
meta |
varchar2 |
itgen_ncl_metadata_threadtitle | filters on the platform, writable, meta |
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. | |
reference |
varchar2 |
itgen_ncl_referenceid | filters on the platform, writable, reference |
||
silent |
char |
itgen_ncl_silent | filters on the platform, writable, silent |
||
system |
varchar2 |
itgen_ncl_systemmessage | filters on the platform, writable, system |
||
thread |
int64 |
itgen_ncl_threadid | filters on the platform, writable, thread |
||
thread |
int64 |
itgen_ncl_threadreplies | filters on the platform, writable, thread |
||
thread |
varchar2 |
itgen_ncl_threadtitle | filters on the platform, writable, thread |
||
timestamp |
int64 |
itgen_ncl_timestamp | filters on the platform, writable, timestamp |
||
token |
varchar2 |
itgen_ncl_token | filters on the platform, writable, token |