Segments
Update segment by id
Changed onUpdates the content of the segment with the provided payload. Requires name and constraints to be present. If project is not present, it will be set to null. Any other fields not specified will be left untouched.
put/api/admin/segments/{id}
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/segments/{id}
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
idinteger required
a segment id
Request body
Example request
{
"name": "beta-users",
"description": "Users willing to help us test and build new features.",
"project": "red-vista",
"constraints": [
{
"contextName": "appName",
"operator": "IN",
"values": [
"my-app",
"my-other-app"
],
"value": "my-app"
}
]
}Response
This response has no body.
Changes
- breaking
the
//request property's minLength was increased from0to1 - info
added the new
SEMVER_GTEenum value to the request property// - info
added the new
SEMVER_LTEenum value to the request property//
- breaking
- info
added the new
REGEXenum value to the request property//
- info