[buddypress-trac] [BuddyPress Trac] #8695: BP REST API endpoint to mark messages as read/unread
buddypress-trac
noreply at wordpress.org
Sun May 22 17:22:08 UTC 2022
#8695: BP REST API endpoint to mark messages as read/unread
-----------------------------+---------------------
Reporter: niftythree | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone: 10.3.0
Component: REST API | Version:
Severity: normal | Resolution: fixed
Keywords: has-copy-review |
-----------------------------+---------------------
Changes (by espellcaste):
* keywords: => has-copy-review
* status: new => closed
* resolution: => fixed
* milestone: Awaiting Review => 10.3.0
Comment:
@niftythree This is actually already possible using the `PUT` endpoint but
it was actually not documented.
I updated the documentation with this information:
https://developer.buddypress.org/bp-rest-api/reference/private-messaging
/#update-metadata-about-a-specific-message-of-the-thread
{{{
bp.apiRequest( {
path: '/buddypress/v1/messages/5',
type: 'PUT',
data: {
context: 'edit',
unread: true // unread or read.
}
} ).done( function( data ) {
return data;
} ).fail( function( error ) {
return error;
} );
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8695#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list