Review/pools
Search and filter pool assignment rules by various criteria
Filter by repository
flxbl-io/sf-core
Filter by pool tag
feature_dev
Filter by active status
true
Search in branch patterns
feature
Search in domain patterns
staging
List of pool assignment rules
GET /sfp/api/review/pools/assign HTTP/1.1
Host:
Accept: */*
List of pool assignment rules
[
{
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
}
]
Creates a new rule for automatically assigning pools to review environments based on branch and domain patterns
Repository identifier in format owner/repo
flxbl-io/sf-core
Tag of the pool to assign for matching patterns
feature_dev
Type of pool (SANDBOX or SCRATCH_ORG). If not specified, will be detected from the pool configuration.
SANDBOX
Possible values: Git branch pattern to match (supports wildcards: , prefix/, *suffix)
main
Domain pattern to match (supports wildcards) - DEPRECATED: Use domainPatterns instead
*
Domain patterns to match (supports wildcards, leave empty to match any domain)
["sales"]
Priority for conflict resolution. Higher values take precedence.
10
Optional description explaining the assignment rule
Feature branches use the development pool for any domain
Whether this assignment rule is active
true
Pool assignment rule created successfully
Invalid pattern or request data
Pool not found
Duplicate rule exists
POST /sfp/api/review/pools/assign HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "main",
"domainPatterns": [
"sales"
],
"priority": 10,
"description": "Feature branches use the development pool for any domain",
"isActive": true
}
{
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
}
Test which pool would be assigned for a given repository, branch, and domain combination
Repository identifier
flxbl-io/sf-core
Branch to test
feature/ABC-123
Domains to test (supports multiple domains)
["sales","service"]
Pattern matching test results
POST /sfp/api/review/pools/assign/test HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"repositoryIdentifier": "flxbl-io/sf-core",
"branch": "feature/ABC-123",
"domains": [
"sales",
"service"
]
}
Pattern matching test results
{
"matched": true,
"poolTag": "feature_dev",
"assignment": {
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
},
"matches": [
{
"assignment": {
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
},
"branchScore": 1,
"domainScore": 1,
"totalScore": 1
}
],
"testParams": {}
}
Pool assignment rule ID
Pool assignment rule details
Assignment rule not found
GET /sfp/api/review/pools/assign/{id} HTTP/1.1
Host:
Accept: */*
{
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
}
Update patterns, priority, or status of an existing pool assignment rule
Pool assignment rule ID
Type of pool (SANDBOX or SCRATCH_ORG)
SANDBOX
Possible values: Git branch pattern to match
feature/*
Domain pattern to match - DEPRECATED: Use domainPatterns instead
sales
Domain patterns to match (supports wildcards, leave empty to match any domain)
["sales","service"]
Priority for conflict resolution
10
Optional description explaining the assignment rule
Updated: Feature branches use the development pool
Whether this assignment rule is active
true
Pool assignment rule updated successfully
Invalid pattern or request data
Assignment rule not found
Duplicate rule would be created
PUT /sfp/api/review/pools/assign/{id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 184
{
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Updated: Feature branches use the development pool",
"isActive": true
}
{
"id": "rpa_1234567890",
"repositoryIdentifier": "flxbl-io/sf-core",
"poolTag": "feature_dev",
"poolType": "SANDBOX",
"branchPattern": "feature/*",
"domainPatterns": [
"sales",
"service"
],
"priority": 10,
"description": "Feature branches use the development pool",
"isActive": true,
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z",
"createdBy": "[email protected]",
"updatedBy": "[email protected]",
"version": 1
}
Was this helpful?