Segments
Update a segment (full replace)
Replaces all fields of a segment. All fields are required.
put/segments/{segment_id}
Request
- Base URLhttps://api.qonversion.io/v4
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
segment_idstring required
Segment identifier.
Request body
Example request
{
"name": "Premium Users Updated",
"conditions": [
{
"metric": "environment",
"comparator": "eq",
"value": "prod"
}
]
}Response
Updated segment
Example response
{
"object": "segment",
"id": "premium-users",
"url": "/v4/segments/premium-users",
"name": "Premium Users",
"conditions": [
{
"metric": "environment",
"comparator": "eq",
"value": "prod"
}
],
"created_at": "2025-09-15T12:30:00Z",
"updated_at": "2025-11-03T10:26:40Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.