Get review totals for a change request
Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. Use this to summarise where a change request stands without paginating through every review.
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$changeRequestIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Query parameters
outdatedbooleanOptional
Filter reviews marked as outdated.
Responses
200
Review totals for the given change request.
application/json
Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.
approvednumberRequired
changes-requestednumberRequired
404
The change request or space could not be found.
application/json
get/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats
GET /v1/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"approved": 1,
"changes-requested": 1
}Last updated
Was this helpful?