When using the Admin API that create attributes to assign a value (Identity) to client Ids, is this the same attribute used in the feature flag definition from the user interface?
The attributes and customer Identity in the Admin API is completely different from the feature flag definition attributes, they have no connection and do not affect each other.
The Admin API attributes are used to assign any existing customer ID with identities that show up when a user hovers the mouse on a customer id in the Result tab in the Split user interface. They are not involved in the targeting or deciding treatments.
On the other hand, the targeting rules attributes, are usually entered through the user interface, Split accepts any text used for attributes.
When the SDK calls getTreatment method, the code need to create the attribute object, insert the same attribute specified in the targeting rules with their corresponding values and pass the attribute object to the getTreatment method.
Please sign in to leave a comment.