Tags

APIs to create and manage Feature Flag Tags

Returns all Tags

Returns all the Tags for the given Account ID

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier

Examples:
accountIdentifier=default
orgIdentifier
required
string

Organization Identifier

Examples:
orgIdentifier=default_org
projectIdentifier
required
string

The Project identifier

environmentIdentifier
required
string

Environment Identifier

pageNumber
integer

PageNumber

pageSize
integer

PageSize

sortOrder
string

SortOrder

Enum: "ASCENDING" "DESCENDING"
sortByField
string

SortByField

Enum: "name" "identifier" "archived" "kind" "modifiedAt"
tagIdentifierFilter
string

Partial Search of Tag Identifiers to filter on

Responses
200

OK

401

Unauthenticated

403

Unauthorized

404

The specified resource was not found

500

Internal server error

get/cf/admin/tags
Request samples
Response samples
application/json
{
  • "itemCount": 1,
  • "pageCount": 100,
  • "pageIndex": 0,
  • "pageSize": 1,
  • "version": 5,
  • "tags": [
    ]
}

Creates a Tag

Create Tags for the given identifier

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier

Examples:
accountIdentifier=default
orgIdentifier
required
string

Organization Identifier

Examples:
orgIdentifier=default_org
projectIdentifier
required
string

The Project identifier

Request Body schema: application/json
required
identifier
required
string

The identifier of the tag

name
required
string

The name of the tag

Responses
201

OK

400

Bad request

401

Unauthenticated

403

Unauthorized

409

The specified resource already exists

500

Internal server error

post/cf/admin/tags
Request samples
application/json
{
  • "identifier": "feature-flag-tag-1",
  • "name": "feature-flag-tag-1"
}
Response samples
application/json
{
  • "details": {
    }
}

Delete a Tag

Delete Tag for the given identifier and account ID

Securityx-api-key
Request
path Parameters
identifier
required
string

Unique identifier for the object in the API.

query Parameters
accountIdentifier
required
string

Account Identifier

Examples:
accountIdentifier=default
orgIdentifier
required
string

Organization Identifier

Examples:
orgIdentifier=default_org
projectIdentifier
required
string

The Project identifier

commitMsg
string

Git commit message

forceDelete
boolean

Permanently deletes the the feature flag

Responses
204

No content

400

Bad request

401

Unauthenticated

403

Unauthorized

404

The specified resource was not found

424

An error with git syncing

500

Internal server error

delete/cf/admin/tags/{identifier}
Request samples
Response samples
application/json
{
  • "code": 404,
  • "details": { },
  • "message": "Error retrieving projects, organization 'default_org' does not exist"
}

Returns a Tag

Returns details such as identifier,Associated Feature Flag etc for the given Tag

Securityx-api-key
Request
path Parameters
identifier
required
string

Unique identifier for the object in the API.

query Parameters
accountIdentifier
required
string

Account Identifier

Examples:
accountIdentifier=default
orgIdentifier
required
string

Organization Identifier

Examples:
orgIdentifier=default_org
projectIdentifier
required
string

The Project identifier

environmentIdentifier
string

Environment

metrics
boolean

Parameter to indicate if metrics data is requested in response

archived
boolean

Status of the feature flag

Responses
200

OK

401

Unauthenticated

403

Unauthorized

404

The specified resource was not found

500

Internal server error

get/cf/admin/tags/{identifier}
Request samples
Response samples
application/json
{
  • "archived": false,
  • "createdAt": 0,
  • "defaultOffVariation": true,
  • "defaultOnVariation": true,
  • "description": "A flag to control a new feature in production",
  • "envProperties": {
    },
  • "evaluation": true,
  • "evaluationIdentifier": "on-variation",
  • "identifier": "bool-flag",
  • "kind": "boolean",
  • "modifiedAt": 0,
  • "name": "My Boolean Flag",
  • "owner": "johndoe",
  • "permanent": true,
  • "prerequisites": [
    ],
  • "project": "test-project",
  • "results": [
    ],
  • "services": [
    ],
  • "stale": false,
  • "staleReason": "matched-criteria",
  • "status": {
    },
  • "tags": [
    ],
  • "variations": [
    ]
}