Flipt
RulesService

POST /api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules

Changed on

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/api/v1/namespaces/{namespaceKey}/flags/{flagKey}/rules
  • Auth
    HTTP bearer

Path parameters

namespaceKeystring required
flagKeystring required

Request body

flagKeystring
segmentKeystring
rankinteger required
namespaceKeystring
segmentKeysstring[]
segmentOperator'OR_SEGMENT_OPERATOR' | 'AND_SEGMENT_OPERATOR' enum

Response

OK

idstring
flagKeystring
segmentKeystring
rankinteger
createdAtstring date-time
updatedAtstring date-time
namespaceKeystring
segmentKeysstring[]
segmentOperator'OR_SEGMENT_OPERATOR' | 'AND_SEGMENT_OPERATOR' enum

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 AND_SEGMENT_OPERATOR enum value to the response property for the response status

    • warning

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

    • info

      added the new AND_SEGMENT_OPERATOR enum value to the request property

    • info

      added the new OR_SEGMENT_OPERATOR enum value to the request property

    • breaking

      removed the enum value AND_SEGMENT_OPERATOR of the request property

    • breaking

      removed the enum value OR_SEGMENT_OPERATOR 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 AND_SEGMENT_OPERATOR enum value from the response property for the response status

    • info

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