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.

Available in MCP
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

A unique entity identifier

Pattern: ^[a-zA-Z0-9_-]+$
changeRequestIdstringRequired

A unique entity identifier

Pattern: ^[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
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?

Powered by GitBook