[wp-trac] [WordPress Trac] #63928: Add additional fields to the `/wp-json/wp/v2/comments` endpoints

WordPress Trac noreply at wordpress.org
Thu Sep 4 16:10:15 UTC 2025


#63928: Add additional fields to the `/wp-json/wp/v2/comments` endpoints
---------------------------+-----------------------------
 Reporter:  hannahtinkler  |      Owner:  hannahtinkler
     Type:  enhancement    |     Status:  assigned
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  rest-api       |
---------------------------+-----------------------------
 The WordPress app is currently undergoing a upgrade from the V1.1 Jetpack
 endpoints to the V2 WordPress JSON endpoints. There are a 3 fields missing
 from the V2 endpoint that are present in the V1.1 endpoints, that the team
 would like added.

 Field 1: `can_moderate`
 `bool` - whether the authenticated user can edit the comment

 Field 2: **`post_details`**
 `array`- named `post` in the V1.1 endpoint but needs to be renamed as
 there is already a `post` property in the V2 response. Properties:
 * id (int - the post ID)
 * title (string - the title of the post)
 * type (string - the post type)
 * link (string - like API link to the post)

 Field 3: **`i_replied`**
 `bool` - whether the authenticated user replied to the comment

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63928>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list