Flagship

FlagshipApps

List apps

GET/accounts/{account_id}/flagship/apps

Get app

GET/accounts/{account_id}/flagship/apps/{app_id}

Create app

POST/accounts/{account_id}/flagship/apps

Update app

PUT/accounts/{account_id}/flagship/apps/{app_id}

Delete app

DELETE/accounts/{account_id}/flagship/apps/{app_id}

ModelsExpand Collapse

<details>

<summary>

AppListResponse object {id, created_at, name, 2 more }

</summary>

id: string

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

created_at: string

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

name: string

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

updated_at: string

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

updated_by: string

Email of the actor who last modified the app, or <code>unknown</code> when unavailable.

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

</details>

Link to this property

<details>

<summary>

AppGetResponse object {id, created_at, name, 2 more }

</summary>

id: string

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

created_at: string

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

name: string

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

updated_at: string

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

updated_by: string

Email of the actor who last modified the app, or <code>unknown</code> when unavailable.

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

</details>

Link to this property

<details>

<summary>

AppCreateResponse object {id, created_at, name, 2 more }

</summary>

id: string

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

created_at: string

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

name: string

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

updated_at: string

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

updated_by: string

Email of the actor who last modified the app, or <code>unknown</code> when unavailable.

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

</details>

Link to this property

<details>

<summary>

AppUpdateResponse object {id, created_at, name, 2 more }

</summary>

id: string

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

created_at: string

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

name: string

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

updated_at: string

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

updated_by: string

Email of the actor who last modified the app, or <code>unknown</code> when unavailable.

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

</details>

Link to this property

<details>

<summary>

AppDeleteResponse object {id }

</summary>

id: string

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

</details>

Link to this property

FlagshipAppsFlags

List flags

GET/accounts/{account_id}/flagship/apps/{app_id}/flags

Get flag

GET/accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key}

Create flag

POST/accounts/{account_id}/flagship/apps/{app_id}/flags

Update flag

PUT/accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key}

Delete flag

DELETE/accounts/{account_id}/flagship/apps/{app_id}/flags/{flag_key}

ModelsExpand Collapse

<details>

<summary>

FlagListResponse 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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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_list_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"