mcp

POST /api/v1/environments/{environment_pk}/features/{feature_pk}/versions/

Creates a new version for a feature flag in a specific environment. Applies to environments with v2 feature versioning (use_v2_feature_versioning: true).

Request

  • Base URL
    https://api.flagsmith.com
  • Auth
    • API key in header Authorization
    • or API key in header Authorization

Path parameters

environment_pkinteger required
feature_pkinteger required

Request body

created_atstring date-time
updated_atstring date-time
publishedboolean
live_fromstring date-time nullable
uuidstring uuid
is_liveboolean
published_byinteger nullable
created_byinteger nullable
descriptionstring nullable
segment_ids_to_delete_overridesinteger[] nullable

List of segment ids for which the segment overrides will be removed in the new version.

publish_immediatelyboolean

Boolean to confirm whether the new version should be publish immediately or not.

Response

created_atstring date-time
updated_atstring date-time
publishedboolean
live_fromstring date-time nullable
uuidstring uuid
is_liveboolean
published_byinteger nullable
created_byinteger nullable
descriptionstring nullable
segment_ids_to_delete_overridesinteger[] nullable

List of segment ids for which the segment overrides will be removed in the new version.

publish_immediatelyboolean

Boolean to confirm whether the new version should be publish immediately or not.

Changes

No recorded changes to this operation across all 21 revisions of this API.