Skip to main content
POST
/
v1
/
workflows
/
rollout
/
instances
/
{instance}
:updatesegment
Execute UpdateSegment
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

instance
string
required

Body

application/json
parameters
object

Parameters for the function.

Response

200 - application/json

OK

pathAimedToUpdate
string
required

The field path that was aimed to be updated