Returns all the Targets for the given Account ID
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "version": 5,
- "targets": [
- {
- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "modifiedAt": 0,
- "name": "Beta Testers",
- "rules": [
- {
- "attribute": "identifier",
- "id": 32434243,
- "negate": false,
- "op": "starts_with",
- "values": [
- null
]
}
], - "servingRules": [
- {
- "clauses": [
- null
], - "priority": 1,
- "ruleId": "string"
}
], - "tags": [
- {
- "identifier": "feature-flag-tag-1",
- "name": "feature-flag-tag-1"
}
], - "version": 1
}
]
}
]
}
Create Targets for the given identifier
Created
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
Internal server error
{- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "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
}
]
}
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}
Add targets by uploading a CSV file
Created
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
Internal server error
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}
Deletes a Target for the given identifier
No content
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "code": 404,
- "details": { },
- "message": "Error retrieving projects, organization 'default_org' does not exist"
}
Returns details of a Target for the given identifier
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "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
}
]
}
Updates a Target for the given identifier
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
Internal server error
{- "gitDetails": {
- "commitMsg": "Making some changes"
}, - "instructions": [
- {
- "kind": "addToIncludeList",
- "parameters": {
- "segments": [
- "alpha-testers",
- "beta-testers"
]
}
}, - {
- "kind": "removeFromIncludeList",
- "parameters": {
- "segments": [
- "alpha-testers",
- "beta-testers"
]
}
}, - {
- "kind": "addToExcludeList",
- "parameters": {
- "segments": [
- "alpha-testers",
- "beta-testers"
]
}
}, - {
- "kind": "removeFromExcludeList",
- "parameters": {
- "segments": [
- "alpha-testers",
- "beta-testers"
]
}
}, - {
- "kind": "addTargetToFlagsVariationTargetMap",
- "parameters": {
- "features": [
- {
- "identifier": "flag1",
- "variation": "true"
}, - {
- "identifier": "flag2",
- "variation": "false"
}
]
}
}, - {
- "kind": "removeTargetFromFlagsVariationTargetMap",
- "parameters": {
- "features": [
- {
- "identifier": "flag1",
- "variation": "true"
}, - {
- "identifier": "flag2",
- "variation": "false"
}
]
}
}
]
}
{- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "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
}
]
}
Modifies a Target for the given account identifier
OK
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
Internal server error
{- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "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
}
]
}
{- "account": "abcXDdffdaffd",
- "anonymous": true,
- "attributes": {
- "age": 20,
- "location": "Belfast"
}, - "createdAt": 0,
- "environment": "string",
- "identifier": "john-doe",
- "name": "John Doe",
- "org": "string",
- "project": "string",
- "segments": [
- {
- "createdAt": 0,
- "environment": "Production",
- "excluded": [
- { }
], - "identifier": "string",
- "included": [
- { }
], - "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
}
]
}
Returns the Target Groups that the specified Target belongs to.
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
{- "excludedSegments": [
- {
- "identifier": "string",
- "name": "string"
}
], - "identifier": "string",
- "includedSegments": [
- {
- "identifier": "string",
- "name": "string"
}
], - "ruleSegments": [
- {
- "identifier": "string",
- "name": "string"
}
]
}