Retrieves number of project change requests in each state
GET <your-unleash-url>/api/admin/projects/:projectId/change-requests/count
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
This endpoint will retrieve the number of project change requests that are: approved, applied, rejected, scheduled or awaiting review
Request
Path Parameters
- projectId string required
Responses
- 200
changeRequestsCountSchema
- application/json
- Schema
- Example (from schema)
Schema
- total number required
The number of total change requests in this project
- applied number required
The number of applied change requests
- rejected number required
The number of rejected change requests
- reviewRequired number required
The number of change requests awaiting the review
- approved number required
The number of approved change requests
- scheduled number required
The number of scheduled change requests
{
"total": 10,
"applied": 5,
"rejected": 2,
"reviewRequired": 2,
"approved": 1,
"scheduled": 1
}
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/projects/:projectId/change-requests/count' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'