Skip to main content

Update strategy segments

POST 

/api/admin/segments/strategies

Sets the segments of the strategy specified to be exactly the ones passed in the payload. Any segments that were used by the strategy before will be removed if they are not in the provided list of segments.

Request

Body

required

updateFeatureStrategySegmentsSchema

    projectId stringrequired

    The ID of the project that the strategy belongs to.

    Example: red-vista
    strategyId stringrequired

    The ID of the strategy to update segments for.

    Example: 15d1e20b-6310-4e17-a0c2-9fb84de3053a
    environmentId stringrequired

    The ID of the strategy environment.

    Example: development
    segmentIds integer[]required

    The new list of segments (IDs) to use for this strategy. Any segments not in this list will be removed from the strategy.

    Example: [1,5,6]

Responses

The resource was successfully created.

Response Headers

  • location

    string

    The location of the newly created resource.

Schema

    projectId stringrequired

    The ID of the project that the strategy belongs to.

    Example: red-vista
    strategyId stringrequired

    The ID of the strategy to update segments for.

    Example: 15d1e20b-6310-4e17-a0c2-9fb84de3053a
    environmentId stringrequired

    The ID of the strategy environment.

    Example: development
    segmentIds integer[]required

    The new list of segments (IDs) to use for this strategy. Any segments not in this list will be removed from the strategy.

    Example: [1,5,6]
Loading...