Sign up and get started with Confidence today! Create your account
Sign up and get started with Confidence today! Create your account
Executes the updateSegment function.
curl --request POST \
--url https://experiments.confidence.dev/v1/workflows/rollout/instances/{instance}:updatesegment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {
"segment": {
"allocation": {
"proportion": {
"value": "<string>"
}
},
"labels": [
{}
],
"name": "<string>",
"targeting": {
"criteria": [
{}
],
"expression": {
"ref": "<string>",
"not": {},
"and": {
"operands": [
{}
]
},
"or": {
"operands": [
{}
]
}
}
}
},
"updateMask": "<string>",
"ignoreTargetingForSticky": true,
"stickyAssignments": true,
"targetingKeySelector": "<string>"
}
}
'{
"pathAimedToUpdate": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters for the function.
Show child attributes
OK
The field path that was aimed to be updated
Was this page helpful?
curl --request POST \
--url https://experiments.confidence.dev/v1/workflows/rollout/instances/{instance}:updatesegment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {
"segment": {
"allocation": {
"proportion": {
"value": "<string>"
}
},
"labels": [
{}
],
"name": "<string>",
"targeting": {
"criteria": [
{}
],
"expression": {
"ref": "<string>",
"not": {},
"and": {
"operands": [
{}
]
},
"or": {
"operands": [
{}
]
}
}
}
},
"updateMask": "<string>",
"ignoreTargetingForSticky": true,
"stickyAssignments": true,
"targetingKeySelector": "<string>"
}
}
'{
"pathAimedToUpdate": "<string>"
}