Returns Target Group details for the given account
OK
Unauthenticated
Unauthorized
Internal server error
{- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "version": 5,
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "identifier": "string",
- "included": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "modifiedAt": 0,
- "name": "Beta Testers",
- "rules": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "servingRules": [
- {
- "clauses": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- null
]
}
], - "priority": 1,
- "ruleId": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "version": 1
}
]
}
Creates a Target Group in the given Project
Created
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
Internal server error
{- "environment": "string",
- "excluded": [
- "string"
], - "identifier": "beta-testers",
- "included": [
- "string"
], - "name": "Beta Testers",
- "project": "string",
- "rules": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "servingRules": [
- {
- "clauses": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "priority": 1,
- "ruleId": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
]
}
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}
Deletes a Target Group for the given ID
No content
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "code": "404",
- "details": { },
- "message": "string"
}
Returns Target Group details for the given ID
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "identifier": "string",
- "included": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "modifiedAt": 0,
- "name": "Beta Testers",
- "rules": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "servingRules": [
- {
- "clauses": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "priority": 1,
- "ruleId": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "version": 1
}
Updates a Target Group for the given identifier
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
Internal server error
{- "instructions": [
- {
- "kind": "addToIncludeList",
- "parameters": {
- "targets": [
- "target1",
- "target2"
]
}
}, - {
- "kind": "removeFromIncludeList",
- "parameters": {
- "targets": [
- "target1",
- "target2"
]
}
}, - {
- "kind": "addToExcludeList",
- "parameters": {
- "targets": [
- "target3"
]
}
}, - {
- "kind": "removeFromExcludeList",
- "parameters": {
- "targets": [
- "target4",
- "target5"
]
}
}, - {
- "kind": "addClause",
- "parameters": {
- "attribute": "email",
- "negate": false,
- "op": "endsWith",
- "values": [
- "gmail.com"
]
}
}, - {
- "kind": "updateClause",
- "parameters": {
- "attribute": "email",
- "clauseID": "test-clause-ID",
- "op": "equals",
- "value": [
- "testuser@testcompany.com"
]
}
}, - {
- "kind": "removeClause",
- "parameters": {
- "clauseID": "test-clause-ID"
}
}
]
}
{- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "identifier": "string",
- "included": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- { }
]
}
], - "modifiedAt": 0,
- "name": "Beta Testers",
- "rules": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "servingRules": [
- {
- "clauses": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- "string"
]
}
], - "priority": 1,
- "ruleId": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "version": 1
}
Returns the list of Feature Flags that the Target Group can be added to. This list will exclude any Feature Flag that the Target Group is already part of.
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "version": 5,
- "featureFlags": [
- {
- "identifier": "test-flag",
- "name": "Test Flag"
}
]
}
Returns the details of a Feature Flag in a Target Group for the given identifier
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
[- {
- "description": "string",
- "environment": "string",
- "identifier": "simple-bool",
- "name": "Simple Bool",
- "project": "string",
- "ruleId": "string",
- "type": "DIRECT",
- "variation": "string"
}
]