Flagship·续5

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20variations%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

array of unknown

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20variations%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20variations">Link to this property</a>

description: optional string

Optional operator-facing description. It does not affect flag evaluation.

maxLength512

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

metadata: optional map[booleanor stringor number]

Key-value metadata associated with the flag. Returned only when the flag has metadata.

</summary>

One of the following:

boolean

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

string

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

number

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

updated_at: optional string

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

updated_by: optional string

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_list_response%20%3E%20(schema)%20%3E%20(property)%20updated_by">Link to this property</a>

</details>

Link to this property

<details>

<summary>

FlagGetResponse object {default_variation, enabled, key, 7 more }

</summary>

default_variation: string

Variation the API serves when the flag is off, or when it’s on but no rule matches the context. Must be a key in <code>variations</code>.

minLength1

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20default_variation">Link to this property</a>

enabled: boolean

When false, the flag bypasses all rules and always serves <code>default_variation</code>.

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

key: string

Unique identifier for the flag within an app. Used in all evaluation and SDK calls.

maxLength64

minLength1

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20key">Link to this property</a>

<details>

<summary>

rules: array of object {conditions, priority, serve_variation, rollout }

Targeting rules evaluated in ascending <code>priority</code>; the first matching rule wins. An empty array means the flag always serves <code>default_variation</code>.

</summary>

<details>

<summary>

conditions: array of object {attribute, operator, value } or object {clauses, logical_operator }

Conditions the context must satisfy for this rule to match. An empty array matches all contexts.

</summary>

One of the following:

<details>

<summary>

FlagshipBaseCondition object {attribute, operator, value }

</summary>

attribute: string

maxLength64

minLength1

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attribute">Link to this property</a>

<details>

<summary>

operator: "equals"or "not_equals"or "greater_than"or 10 more

</summary>

One of the following:

"equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%200">Link to this property</a>

"not_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%201">Link to this property</a>

"greater_than"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%202">Link to this property</a>

"less_than"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%203">Link to this property</a>

"greater_than_or_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%204">Link to this property</a>

"less_than_or_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%205">Link to this property</a>

"contains"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%206">Link to this property</a>

"starts_with"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%207">Link to this property</a>

"ends_with"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%208">Link to this property</a>

"in"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%209">Link to this property</a>

"not_in"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2010">Link to this property</a>

"has"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2011">Link to this property</a>

"not_has"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator">Link to this property</a>

<details>

<summary>

value: stringor numberor booleanor 2 more

</summary>

One of the following:

string

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%201">Link to this property</a>

boolean

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%202">Link to this property</a>

map[unknown]

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%203">Link to this property</a>

array of unknown

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%204">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

FlagshipLogicalCondition object {clauses, logical_operator }

</summary>

<details>

<summary>

clauses: array of object {attribute, operator, value } or object {clauses, logical_operator }

</summary>

One of the following:

<details>

<summary>

FlagshipBaseCondition object {attribute, operator, value }

</summary>

attribute: string

maxLength64

minLength1

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attribute">Link to this property</a>

<details>

<summary>

operator: "equals"or "not_equals"or "greater_than"or 10 more

</summary>

One of the following:

"equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%200">Link to this property</a>

"not_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%201">Link to this property</a>

"greater_than"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%202">Link to this property</a>

"less_than"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%203">Link to this property</a>

"greater_than_or_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%204">Link to this property</a>

"less_than_or_equals"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%205">Link to this property</a>

"contains"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%206">Link to this property</a>

"starts_with"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%207">Link to this property</a>

"ends_with"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%208">Link to this property</a>

"in"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%209">Link to this property</a>

"not_in"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2010">Link to this property</a>

"has"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2011">Link to this property</a>

"not_has"

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operator">Link to this property</a>

<details>

<summary>

value: stringor numberor booleanor 2 more

</summary>

One of the following:

string

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20flagship.apps.flags%20%3E%20(model)%20flag_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20clauses%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value%20%3E%20(variant)%201">Link to this property</a>

boolean