Retrieves all pending change requests referencing a feature in the project
GET/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
Responses
- 200
changeRequestsSchema
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
- MOD2
Array [
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- setStrategySortOrderSchema
Array [
]
]
]
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- setStrategySortOrderSchema
Array [
]
]
Array [
]
Array [
]
Array [
]
Array [
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- setStrategySortOrderSchema
Array [
]
]
]
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- setStrategySortOrderSchema
Array [
]
]
Array [
]
Array [
]
Array [
]
- MOD1
- MOD2
- MOD3
]
oneOf
This change requests's ID.
3A title describing the change request's content.
Increasing gradual rolloutThe environment in which the changes should be applied.
developmentThe minimum number of approvals required before this change request can be applied.
2The project this change request belongs to.
unleash-projectfeatures
object[]
required
The list of features and their changes that relate to this change request.
The name of the feature
my-featureA string describing the conflicts related to this change. Only present if there are any concflicts on the feature level.
Feature has been archivedchanges
object[]
required
List of changes inside change request. This list may be empty when listing all change requests for a project.
The ID of this change.
33The kind of action that the change contains information about.
updateStrategyA description of the conflict caused by this change. Only present if there are any conflicts.
Strategy has been deletedpayload
object
required
The data required to perform this action.
oneOf
string
boolean
object
number
An array of strategies with their new sort order
The ID of the strategy
9c40958a-daac-400e-98fb-3bb438567008The new sort order of the strategy
1createdBy
object
The user who created this change.
The user's username.
The URL where the user's image can be found.
When this change was suggested
2023-07-31T13:22:03+02:00defaultChange
object
A description of a default change that will be applied with the change request to prevent invalid states.
Default changes are changes that are applied in addition to explicit user-specified changes when a change request is applied. Any default changes are applied in the background and are not a real part of the change request.
The kind of action this is.
addStrategyThe necessary data to perform this change.
{"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
object[]
required
The list of segments and their changes that relate to this change request.
The ID of this change.
33The kind of action that the change contains information about.
updateStrategyA description of the conflict caused by this change. Only present if there are any conflicts.
Strategy has been deletedpayload
object
required
The data required to perform this action.
oneOf
string
boolean
object
number
An array of strategies with their new sort order
The ID of the strategy
9c40958a-daac-400e-98fb-3bb438567008The new sort order of the strategy
1createdBy
object
The user who created this change.
The user's username.
The URL where the user's image can be found.
When this change was suggested
2023-07-31T13:22:03+02:00The current name of the segment
beta-usersapprovals
object[]
deprecated
A list of approvals that this change request has received.
createdBy
object
required
Information about the user who gave this approval.
The ID of the user who gave this approval.
33The approving user's username.
unleash-userThe URL where the user's image can be found.
When the approval was given.
2022-12-12T12:13:24.218Zrejections
object[]
deprecated
A list of rejections that this change request has received.
createdBy
object
required
Information about the user who gave this approval.
The ID of the user who gave this approval.
33The approving user's username.
unleash-userThe URL where the user's image can be found.
When the approval was given.
2022-12-12T12:13:24.218Zcomments
object[]
deprecated
All comments that have been made on this change request.
The comment's ID. Unique per change request.
33The content of the comment.
This is a commentcreatedBy
object
required
Information about the user who posted the comment
The user's username.
unleash-userThe URL where the user's image can be found.
When the comment was made.
2022-12-12T12:13:24.218ZcreatedBy
object
required
The user who created this change request.
HunterThe URL of the user's profile image.
When this change request was created.
2023-07-31T13:33:02ZThe current state of the change request.
Possible values: [Draft, In review, Approved, Applied, Cancelled, Rejected]
This change requests's ID.
3A title describing the change request's content.
Increasing gradual rolloutThe environment in which the changes should be applied.
developmentThe minimum number of approvals required before this change request can be applied.
2The project this change request belongs to.
unleash-projectfeatures
object[]
required
The list of features and their changes that relate to this change request.
The name of the feature
my-featureA string describing the conflicts related to this change. Only present if there are any concflicts on the feature level.
Feature has been archivedchanges
object[]
required
List of changes inside change request. This list may be empty when listing all change requests for a project.
The ID of this change.
33The kind of action that the change contains information about.
updateStrategyA description of the conflict caused by this change. Only present if there are any conflicts.
Strategy has been deletedpayload
object
required
The data required to perform this action.
oneOf
string
boolean
object
number
An array of strategies with their new sort order
The ID of the strategy
9c40958a-daac-400e-98fb-3bb438567008The new sort order of the strategy
1createdBy
object
The user who created this change.
The user's username.
The URL where the user's image can be found.
When this change was suggested
2023-07-31T13:22:03+02:00defaultChange
object
A description of a default change that will be applied with the change request to prevent invalid states.
Default changes are changes that are applied in addition to explicit user-specified changes when a change request is applied. Any default changes are applied in the background and are not a real part of the change request.
The kind of action this is.
addStrategyThe necessary data to perform this change.
{"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
object[]
required
The list of segments and their changes that relate to this change request.
The ID of this change.
33The kind of action that the change contains information about.
updateStrategyA description of the conflict caused by this change. Only present if there are any conflicts.
Strategy has been deletedpayload
object
required
The data required to perform this action.
oneOf
string
boolean
object
number
An array of strategies with their new sort order
The ID of the strategy
9c40958a-daac-400e-98fb-3bb438567008The new sort order of the strategy
1createdBy
object
The user who created this change.
The user's username.
The URL where the user's image can be found.
When this change was suggested
2023-07-31T13:22:03+02:00The current name of the segment
beta-usersapprovals
object[]
deprecated
A list of approvals that this change request has received.
createdBy
object
required
Information about the user who gave this approval.
The ID of the user who gave this approval.
33The approving user's username.
unleash-userThe URL where the user's image can be found.
When the approval was given.
2022-12-12T12:13:24.218Zrejections
object[]
deprecated
A list of rejections that this change request has received.
createdBy
object
required
Information about the user who gave this approval.
The ID of the user who gave this approval.
33The approving user's username.
unleash-userThe URL where the user's image can be found.
When the approval was given.
2022-12-12T12:13:24.218Zcomments
object[]
deprecated
All comments that have been made on this change request.
The comment's ID. Unique per change request.
33The content of the comment.
This is a commentcreatedBy
object
required
Information about the user who posted the comment
The user's username.
unleash-userThe URL where the user's image can be found.
When the comment was made.
2022-12-12T12:13:24.218ZcreatedBy
object
required
The user who created this change request.
HunterThe URL of the user's profile image.
When this change request was created.
2023-07-31T13:33:02ZThe current state of the change request.
Possible values: [Scheduled]
schedule
object
required
A schedule for a change request's application. The schedule can either be pending, failed, or suspended. The schedule will always contain the state of the schedule and the last scheduled time, but other data varies between the different states.
oneOf
A pending schedule for a change request.
When this change request will be applied.
2023-07-31T13:33:02ZThe status of the schedule.
Possible values: [pending]
pendingA failed schedule for a change request.
When Unleash last attempted to apply this change request.
2023-07-31T13:33:02ZThe status of the schedule.
Possible values: [failed]
failedThe reason the scheduled failed to apply.
conflictsThe reason the scheduled failed to apply. Deprecated in favor of the reason property.
conflictsA suspended schedule for a change request.
When Unleash would have attempted to apply this change request if the schedule was not suspended.
2023-07-31T13:33:02ZThe status of the schedule.
Possible values: [suspended]
suspendedWhy the schedule was suspended.
The user who scheduled this change request (user id: 123) has been deleted from this Unleash instance.[
null,
null
]