Retrieves all pending change requests referencing a feature in the project
GET<your-unleash-url>/api/admin/projects/:projectId/change-requests/pending/:featureName
This endpoint will retrieve all pending change requests (change requests with a status of Draft | In review | Approved) referencing the given feature flag name.
Request
Path Parameters
projectId stringrequired
featureName stringrequired
Responses
- 200
changeRequestsSchema
- application/json
- Schema
- Example (auto)
Schema
- Array [oneOf
- MOD1
- MOD2
- ]
[
{
"id": 3,
"title": "Increasing gradual rollout",
"environment": "development",
"project": "unleash-project",
"features": [
{
"name": "my-feature",
"conflict": "Feature has been archived",
"changes": [
{
"id": 33,
"action": "updateStrategy",
"conflict": "Strategy has been deleted",
"payload": "string",
"createdBy": {
"username": "string",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:22:03+02:00"
}
],
"defaultChange": {
"action": "addStrategy",
"payload": {
"name": "flexibleRollout",
"title": "",
"disabled": false,
"segments": [],
"parameters": {
"groupId": "my-feature",
"rollout": "100",
"stickiness": "default"
},
"constraints": [
{
"values": [
"ux"
],
"inverted": false,
"operator": "STR_CONTAINS",
"contextName": "userId",
"caseInsensitive": false
}
]
}
}
}
],
"segments": [
{
"id": 33,
"action": "updateStrategy",
"conflict": "Strategy has been deleted",
"payload": "string",
"createdBy": {
"username": "string",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:22:03+02:00",
"name": "beta-users"
}
],
"createdBy": {
"username": "Hunter",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:33:02Z",
"state": "Draft"
},
{
"id": 3,
"title": "Increasing gradual rollout",
"environment": "development",
"project": "unleash-project",
"features": [
{
"name": "my-feature",
"conflict": "Feature has been archived",
"changes": [
{
"id": 33,
"action": "updateStrategy",
"conflict": "Strategy has been deleted",
"payload": "string",
"createdBy": {
"username": "string",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:22:03+02:00"
}
],
"defaultChange": {
"action": "addStrategy",
"payload": {
"name": "flexibleRollout",
"title": "",
"disabled": false,
"segments": [],
"parameters": {
"groupId": "my-feature",
"rollout": "100",
"stickiness": "default"
},
"constraints": [
{
"values": [
"ux"
],
"inverted": false,
"operator": "STR_CONTAINS",
"contextName": "userId",
"caseInsensitive": false
}
]
}
}
}
],
"segments": [
{
"id": 33,
"action": "updateStrategy",
"conflict": "Strategy has been deleted",
"payload": "string",
"createdBy": {
"username": "string",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:22:03+02:00",
"name": "beta-users"
}
],
"createdBy": {
"username": "Hunter",
"imageUrl": "string"
},
"createdAt": "2023-07-31T13:33:02Z",
"state": "Scheduled",
"schedule": {
"scheduledAt": "2023-07-31T13:33:02Z",
"status": "pending"
}
}
]
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/projects/:projectId/change-requests/pending/:featureName' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
ResponseClear