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 string required

    The ID of the project that the strategy belongs to.

  • strategyId string required

    The ID of the strategy to update segments for.

  • environmentId string required

    The ID of the strategy environment.

  • 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.

Responses

The resource was successfully created.

Response Headers
  • location string

    The location of the newly created resource.

Schema
  • projectId string required

    The ID of the project that the strategy belongs to.

  • strategyId string required

    The ID of the strategy to update segments for.

  • environmentId string required

    The ID of the strategy environment.

  • 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.

Loading...