Skip to main content

Edits a single change in a change request

PUT 

<your-unleash-url>/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

    projectId stringrequired
    changeRequestId stringrequired
    changeId stringrequired

Bodyrequired

changeRequestCreateSchema

    oneOf
    actionstringrequired

    The name of this action.

    Possible values: [updateSegment]

    payload objectrequired

    Data used to create or update a segment

    idintegerrequired

    The ID of the segment to update.

    Example: 1

Responses

changeRequestSchema

Schema
    oneOf

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
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: <Authorization>' \
-d '{
"action": "updateSegment",
"payload": {
"id": 1
}
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
Body required
{
  "action": "updateSegment",
  "payload": {
    "id": 1
  }
}
ResponseClear

Click the Send API Request button above and see the response here!