Flags

Manage flags

Get flags of the account

get

Return the list of the flags of the account

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/flags

Create one/multiple flag(s)

post

Create one/multiple flag(s)

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

Body
Responses
post
/accounts/{account_id}/flags

Get flags usages of the account

get

Return the list of the flag usages of the account

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/flags/usage

Get one flag

get

Return one flag key by its id

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

flag_idstringRequired

The ID of the flag

Responses
200

Success

application/json
get
/accounts/{account_id}/flags/{flag_id}

Delete a flag

delete

Delete a flag by its id.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

flag_idstringRequired

The ID of the flag

Responses
delete
/accounts/{account_id}/flags/{flag_id}

No content

Update a flag

patch

Update flag informations - You can set only the properies you want to update in the request body.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

flag_idstringRequired

The ID of the flag

Body
idstringRead-onlyOptional

ID of the flag

namestringRequired

Name of the flag

descriptionstringRequired

Description of the flag

typestring · enumRequired

Type of the flag

Possible values:
sourcestring · enumRequired

Source of the flag

Possible values:
default_valuestringOptional

Default value of the flag (default value is only supported for string type)

created_atstring · date-timeRead-onlyOptional

Creation date of the flag

Responses
200

Updated

application/json
patch
/accounts/{account_id}/flags/{flag_id}

Get flag usages of the account environment

get

Return the list of the flag usages of the account environment

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/account_environments/{account_environment_id}/flags_usage

Update flag usages

post

Update flag usages

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

Bodyobject[]
repositoryUrlstringOptional

Git repository url of the flag usage (in client client)

repositoryBranchstringOptional

Git branch of the flag usage (in client client)

Responses
post
/accounts/{account_id}/account_environments/{account_environment_id}/flags_usage

No content

Get one flag usage

get

Return list of flag usages key by its key

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

flag_keystringRequired

The key of the flag

Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/account_environments/{account_environment_id}/flags_usage/{flag_key}

Last updated

Was this helpful?