[buddypress-trac] [BuddyPress Trac] #9170: BP REST API Messages Endpoint - "raw" property missing from subject/excerpt/message nodes

buddypress-trac noreply at wordpress.org
Wed Jun 5 13:17:33 UTC 2024


#9170: BP REST API Messages Endpoint - "raw" property missing from
subject/excerpt/message nodes
--------------------------+------------------------------
 Reporter:  niftythree    |       Owner:  espellcaste
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by espellcaste):

 @niftythree

 I think our [https://developer.buddypress.org/bp-rest-api/reference
 /private-messaging/ documentation] can do a better job here.

 But if you look at the schema of the endpoint, the `raw` value of those
 fields are only available if you use the `edit` context.

 {{{
 curl -X "OPTIONS" "https://your-site.test/wp-json/buddypress/v1/messages"
 \
      -u 'user:login'
 }}}

 The fact that the `raw` data is present in the `messages` field (without
 the `edit` context) is actually a ''bug'' you just brought to my
 attention, and that we should fix.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9170#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list