curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"description": "<string>"
}
],
"matchType": "ALL_MATCH_TYPE",
"namespaceKey": "<string>"
}
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"description": "<string>"
}
],
"matchType": "ALL_MATCH_TYPE",
"namespaceKey": "<string>"
}
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"description": "<string>"
}
],
"matchType": "ALL_MATCH_TYPE",
"namespaceKey": "<string>"
}
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"name": "<name>",
"description": "<description>",
}'
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"description": "<string>"
}
],
"matchType": "ALL_MATCH_TYPE",
"namespaceKey": "<string>"
}