Edits a single change in a change request
PUThttps://us.app.unleash-hosted.com/ushosted/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId
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
- application/json
Body
required
changeRequestCreateSchema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
oneOf
The name of this action.
Possible values: [updateSegment
]
payload
object
required
The name of this action.
Possible values: [deleteSegment
]
payload
object
required
Update the enabled state for a feature.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [updateEnabled
]
payload
object
required
Add a strategy to the feature
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [addStrategy
]
payload
object
required
Update a strategy belonging to this feature.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [updateStrategy
]
payload
object
required
Delete a strategy from this feature.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [deleteStrategy
]
payload
object
required
Archive a feature.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [archiveFeature
]
Update variants for this feature.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [patchVariant
]
payload
object
required
Reorder strategies for this feature
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [reorderStrategy
]
payload
object[]
required
Add a parent feature dependency.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [addDependency
]
payload
object
required
Remove a parent feature dependency or all dependencies if no payload.
The name of the feature that this change applies to.
my-best-feature
The name of this action.
Possible values: [deleteDependency
]
Responses
- 200
- 404
changeRequestSchema
- application/json
- Schema
Schema
- MOD1
- MOD2
oneOf
This change requests's ID.
3
A title describing the change request's content.
Increasing gradual rollout
The environment in which the changes should be applied.
development
The minimum number of approvals required before this change request can be applied.
2
The project this change request belongs to.
unleash-project
features
object[]
required
segments
object[]
required
approvals
object[]
rejections
object[]
comments
object[]
createdBy
object
required
When this change request was created.
2023-07-31T13:33:02Z
The current state of the change request.
Possible values: [Draft
, In review
, Approved
, Applied
, Cancelled
, Rejected
]
This change requests's ID.
3
A title describing the change request's content.
Increasing gradual rollout
The environment in which the changes should be applied.
development
The minimum number of approvals required before this change request can be applied.
2
The project this change request belongs to.
unleash-project
features
object[]
required
segments
object[]
required
approvals
object[]
rejections
object[]
comments
object[]
createdBy
object
required
When this change request was created.
2023-07-31T13:33:02Z
The current state of the change request.
Possible values: [Scheduled
]
schedule
object
required
The requested resource was not found.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008
The name of the error kind
NotFoundError
A description of what went wrong.
Could not find the addon with ID "12345".
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NotFoundError",
"message": "Could not find the addon with ID \"12345\"."
}
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 -X PUT 'https://us.app.unleash-hosted.com/ushosted/api/admin/projects/:projectId/change-requests/:changeRequestId/changes/:changeId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'