Flipt
ConstraintsService

PUT /api/v1/namespaces/{namespaceKey}/segments/{segmentKey}/constraints/{id}

Changed on

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/api/v1/namespaces/{namespaceKey}/segments/{segmentKey}/constraints/{id}
  • Auth
    HTTP bearer

Path parameters

namespaceKeystring required
segmentKeystring required
idstring required

Request body

idstring
segmentKeystring
type'UNKNOWN_COMPARISON_TYPE' | 'STRING_COMPARISON_TYPE' | 'NUMBER_COMPARISON_TYPE' | 'BOOLEAN_COMPARISON_TYPE' | 'DATETIME_COMPARISON_TYPE' | 'ENTITY_ID_COMPARISON_TYPE' enum required
propertystring required
operatorstring required
valuestring
namespaceKeystring
descriptionstring

Response

OK

idstring
segmentKeystring
type'UNKNOWN_COMPARISON_TYPE' | 'STRING_COMPARISON_TYPE' | 'NUMBER_COMPARISON_TYPE' | 'BOOLEAN_COMPARISON_TYPE' | 'DATETIME_COMPARISON_TYPE' | 'ENTITY_ID_COMPARISON_TYPE' enum
propertystring
operatorstring
valuestring
createdAtstring date-time
updatedAtstring date-time
namespaceKeystring
descriptionstring

Changes

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property type changed from integer to string

    • breaking

      the response's property type changed from integer to string for status

    • warning

      added the new BOOLEAN_COMPARISON_TYPE enum value to the response property for the response status

    • warning

      added the new DATETIME_COMPARISON_TYPE enum value to the response property for the response status

    • warning

      added the new ENTITY_ID_COMPARISON_TYPE enum value to the response property for the response status

    • warning

      added the new NUMBER_COMPARISON_TYPE enum value to the response property for the response status

    • warning

      added the new STRING_COMPARISON_TYPE enum value to the response property for the response status

    • warning

      added the new UNKNOWN_COMPARISON_TYPE enum value to the response property for the response status

    • info

      added the new BOOLEAN_COMPARISON_TYPE enum value to the request property

    • info

      added the new DATETIME_COMPARISON_TYPE enum value to the request property

    • info

      added the new ENTITY_ID_COMPARISON_TYPE enum value to the request property

    • info

      added the new NUMBER_COMPARISON_TYPE enum value to the request property

    • info

      added the new STRING_COMPARISON_TYPE enum value to the request property

    • info

      added the new UNKNOWN_COMPARISON_TYPE enum value to the request property

    • breaking

      removed the enum value BOOLEAN_COMPARISON_TYPE of the request property

    • breaking

      removed the enum value DATETIME_COMPARISON_TYPE of the request property

    • breaking

      removed the enum value ENTITY_ID_COMPARISON_TYPE of the request property

    • breaking

      removed the enum value NUMBER_COMPARISON_TYPE of the request property

    • breaking

      removed the enum value STRING_COMPARISON_TYPE of the request property

    • breaking

      removed the enum value UNKNOWN_COMPARISON_TYPE of the request property

    • breaking

      the request property type changed from string to integer

    • breaking

      the response's property type changed from string to integer for status

    • info

      removed the BOOLEAN_COMPARISON_TYPE enum value from the response property for the response status

    • info

      removed the DATETIME_COMPARISON_TYPE enum value from the response property for the response status

    • info

      removed the ENTITY_ID_COMPARISON_TYPE enum value from the response property for the response status

    • info

      removed the NUMBER_COMPARISON_TYPE enum value from the response property for the response status

    • info

      removed the STRING_COMPARISON_TYPE enum value from the response property for the response status

    • info

      removed the UNKNOWN_COMPARISON_TYPE enum value from the response property for the response status