Edits a single change in a change request
Changed onEnterprise feature
This endpoint will edit one change from a change request if it matches the provided id. The edit removes previous change and inserts a new one. You
should not rely on the changeId for subsequent edits and always check the most recent changeId.
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/projects/{projectId}/change-requests/{changeRequestId}/changes/{changeId}
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
Request body
Example request
{
"payload": {
"name": "beta-users",
"description": "Users willing to help us test and build new features.",
"project": "red-vista",
"constraints": [
{
"contextName": "appName",
"operator": "IN",
"values": [
"my-app",
"my-other-app"
],
"value": "my-app"
}
]
}
}Response
changeRequestSchema
Example response
{
"id": 3,
"title": "Increasing gradual rollout",
"environment": "development",
"minApprovals": 2,
"project": "unleash-project",
"features": [
{
"name": "my-feature",
"conflict": "Feature has been archived",
"changes": [
{
"id": 33,
"action": "updateStrategy",
"conflict": "Strategy has been deleted",
"payload": [
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"sortOrder": 1
}
],
"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": [
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"sortOrder": 1
}
],
"createdAt": "2023-07-31T13:22:03+02:00",
"name": "beta-users"
}
],
"approvals": [
{
"createdBy": {
"id": 33,
"username": "unleash-user"
},
"createdAt": "2022-12-12T12:13:24.218Z"
}
],
"rejections": [
{
"createdBy": {
"id": 33,
"username": "unleash-user"
},
"createdAt": "2022-12-12T12:13:24.218Z"
}
],
"comments": [
{
"id": 33,
"text": "This is a comment",
"createdBy": {
"username": "unleash-user"
},
"createdAt": "2022-12-12T12:13:24.218Z"
}
],
"createdBy": {
"username": "Hunter"
},
"createdAt": "2023-07-31T13:33:02Z",
"stateTimestamps": {
"Draft": "2023-07-31T13:33:02Z",
"In review": "2023-08-01T10:15:30Z",
"Approved": "2023-08-02T09:01:00Z"
}
}Changes
- breaking
the
////request property's minLength was increased from0to1 - info
added the new
SEMVER_GTEenum value to the request property//// - info
added the new
SEMVER_LTEenum value to the request property////
- breaking
- breaking
removed
subschema #4subschema #18subschema #19from the request bodyoneOflist - breaking
added
subschema #1subschema #2to the response bodyoneOflist for the response status - info
added
subschema #4subschema #5subschema #19subschema #20subschema #21subschema #22to the request bodyoneOflist - info
removed
subschema #1subschema #2from the response bodyoneOflist for the response status
- breaking