Update strategy segments

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.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

updateFeatureStrategySegmentsSchema
projectIdstringRequired
The ID of the project that the strategy belongs to.
strategyIdstringRequired
The ID of the strategy to update segments for.
environmentIdstringRequired
The ID of the strategy environment.
segmentIdslist of integersRequired

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

Response headers

locationstring or null
The location of the newly created resource.

Response

The resource was successfully created.
projectIdstring
The ID of the project that the strategy belongs to.
strategyIdstring
The ID of the strategy to update segments for.
environmentIdstring
The ID of the strategy environment.
segmentIdslist of integers

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

Errors