Edits a single change in a change request
PUT <your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
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
Path Parameters
- projectId string required
- changeRequestId string required
- changeId string required
- application/json
Body
required
changeRequestCreateSchema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- action string required
Possible values: [
updateSegment
]The name of this action.
payload objectrequired
- action string required
Possible values: [
deleteSegment
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
updateEnabled
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
addStrategy
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
updateStrategy
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
deleteStrategy
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
archiveFeature
]The name of this action.
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
patchVariant
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
reorderStrategy
]The name of this action.
payload object[]required
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
addDependency
]The name of this action.
payload objectrequired
- feature string required
The name of the feature that this change applies to.
- action string required
Possible values: [
deleteDependency
]The name of this action.
- 200
- 404
changeRequestSchema
- application/json
- Schema
Schema
- MOD1
- MOD2
- id number required
This change requests's ID.
- title string
A title describing the change request's content.
- environment string required
The environment in which the changes should be applied.
- minApprovals number required
The minimum number of approvals required before this change request can be applied.
- project string required
The project this change request belongs to.
features object[]required
segments object[]required
approvals object[]
rejections object[]
comments object[]
createdBy objectrequired
- createdAt date-time required
When this change request was created.
- state string required
Possible values: [
Draft
,In review
,Approved
,Applied
,Cancelled
,Rejected
]The current state of the change request.
- id number required
This change requests's ID.
- title string
A title describing the change request's content.
- environment string required
The environment in which the changes should be applied.
- minApprovals number required
The minimum number of approvals required before this change request can be applied.
- project string required
The project this change request belongs to.
features object[]required
segments object[]required
approvals object[]
rejections object[]
comments object[]
createdBy objectrequired
- createdAt date-time required
When this change request was created.
- state string required
Possible values: [
Scheduled
]The current state of the change request.
schedule objectrequired
The requested resource was not found.
- application/json
- Schema
- Example (from schema)
Schema
- id string
The ID of the error instance
- name string
The name of the error kind
- message string
A description of what went wrong.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NotFoundError",
"message": "Could not find the addon with ID \"12345\"."
}
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'