Review / Assignment Rules

Query assignment rules

get

Search and filter assignment rules by various criteria including target type (pool or environment)

Authorizations
Query parameters
repositoryIdentifierstringOptional

Filter by repository

Example: flxbl-io/sf-core
poolTagstringOptional

Filter by pool tag

Example: feature_dev
targetTypestring · enumOptional

Filter by target type (pool or environment)

Possible values:
isActivebooleanOptional

Filter by active status

Example: true
branchPatternSearchstringOptional

Search in branch patterns

Example: feature
domainPatternSearchstringOptional

Search in domain patterns

Example: staging
Responses
chevron-right
200

List of assignment rules

application/json
idstringRequired

Unique identifier for the assignment

Example: rpa_1234567890
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
targetTypestring · enumRequired

Target type: pool or environment

Example: poolPossible values:
poolTagstringOptional

Pool tag assigned (when targetType is pool)

Example: feature_dev
poolTypestring · enumOptional

Type of pool (SANDBOX or SCRATCH_ORG)

Example: SANDBOXPossible values:
environmentNamestringOptional

Dedicated environment name (when targetType is environment)

Example: my-review-env
branchPatternstringRequired

Branch pattern

Example: feature/*
domainPatternstringOptionalDeprecated

Domain pattern - DEPRECATED: Use domainPatterns instead

Example: sales
domainPatternsstring[]Required

Domain patterns

Example: ["sales","service"]
prioritynumberRequired

Priority for conflict resolution

Example: 10
descriptionstringOptional

Description of the rule

Example: Feature branches use the development pool
isActivebooleanRequired

Whether the rule is active

Example: true
createdAtstringRequired

Creation timestamp

Example: 2025-01-01T12:00:00Z
updatedAtstringRequired

Last update timestamp

Example: 2025-01-02T12:00:00Z
createdBystringRequired

User who created the assignment

Example: [email protected]
updatedBystringOptional

User who last updated the assignment

Example: [email protected]
versionnumberRequired

Document version for optimistic locking

Example: 1
get
/sfp/api/review/pools/assign

Create an assignment rule

post

Creates a new rule for automatically assigning a pool or dedicated environment to review environments based on branch and domain patterns. Set targetType to "pool" to assign from a pool, or "environment" to assign a dedicated environment.

Authorizations
Body
repositoryIdentifierstringRequired

Repository identifier in format owner/repo

Example: flxbl-io/sf-core
targetTypestring · enumOptional

Target type: pool (default) or environment for dedicated org assignment

Default: poolPossible values:
poolTagstringOptional

Tag of the pool to assign for matching patterns. Required when targetType is pool.

Example: feature_dev
poolTypestring · enumOptional

Type of pool (SANDBOX or SCRATCH_ORG). If not specified, will be detected from the pool configuration.

Example: SANDBOXPossible values:
environmentNamestringOptional

Name of a dedicated environment to assign. Required when targetType is environment.

Example: my-review-env
branchPatternstringRequired

Git branch pattern to match (supports wildcards: , prefix/, *suffix)

Example: main
domainPatternstringOptionalDeprecated

Domain pattern to match (supports wildcards) - DEPRECATED: Use domainPatterns instead

Example: *
domainPatternsstring[]Optional

Domain patterns to match (supports wildcards, leave empty to match any domain)

Example: ["sales"]
prioritynumber · max: 1000Required

Priority for conflict resolution. Higher values take precedence.

Example: 10
descriptionstringOptional

Optional description explaining the assignment rule

Example: Feature branches use the development pool for any domain
isActivebooleanOptional

Whether this assignment rule is active

Default: true
Responses
post
/sfp/api/review/pools/assign

Test pattern matching

post

Test which pool or environment would be assigned for a given repository, branch, and domain combination

Authorizations
Body
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
branchstringRequired

Branch to test

Example: feature/ABC-123
domainsstring[]Optional

Domains to test (supports multiple domains)

Example: ["sales","service"]
Responses
chevron-right
200

Pattern matching test results

application/json
matchedbooleanRequired

Whether a match was found

Example: true
targetTypestring · enumOptional

Target type of the best match

Possible values:
poolTagstringOptional

Matched pool tag (when targetType is pool)

Example: feature_dev
environmentNamestringOptional

Matched environment name (when targetType is environment)

Example: my-review-env
testParamsobjectRequired

Test parameters used

post
/sfp/api/review/pools/assign/test

Get an assignment rule by ID

get
Authorizations
Path parameters
idstringRequired

Assignment rule ID

Responses
chevron-right
200

Assignment rule details

application/json
idstringRequired

Unique identifier for the assignment

Example: rpa_1234567890
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
targetTypestring · enumRequired

Target type: pool or environment

Example: poolPossible values:
poolTagstringOptional

Pool tag assigned (when targetType is pool)

Example: feature_dev
poolTypestring · enumOptional

Type of pool (SANDBOX or SCRATCH_ORG)

Example: SANDBOXPossible values:
environmentNamestringOptional

Dedicated environment name (when targetType is environment)

Example: my-review-env
branchPatternstringRequired

Branch pattern

Example: feature/*
domainPatternstringOptionalDeprecated

Domain pattern - DEPRECATED: Use domainPatterns instead

Example: sales
domainPatternsstring[]Required

Domain patterns

Example: ["sales","service"]
prioritynumberRequired

Priority for conflict resolution

Example: 10
descriptionstringOptional

Description of the rule

Example: Feature branches use the development pool
isActivebooleanRequired

Whether the rule is active

Example: true
createdAtstringRequired

Creation timestamp

Example: 2025-01-01T12:00:00Z
updatedAtstringRequired

Last update timestamp

Example: 2025-01-02T12:00:00Z
createdBystringRequired

User who created the assignment

Example: [email protected]
updatedBystringOptional

User who last updated the assignment

Example: [email protected]
versionnumberRequired

Document version for optimistic locking

Example: 1
get
/sfp/api/review/pools/assign/{id}

Update an assignment rule

put

Update patterns, priority, target, or status of an existing assignment rule

Authorizations
Path parameters
idstringRequired

Assignment rule ID

Body
poolTypestring · enumOptional

Type of pool (SANDBOX or SCRATCH_ORG)

Example: SANDBOXPossible values:
branchPatternstringOptional

Git branch pattern to match

Example: feature/*
domainPatternstringOptionalDeprecated

Domain pattern to match - DEPRECATED: Use domainPatterns instead

Example: sales
domainPatternsstring[]Optional

Domain patterns to match (supports wildcards, leave empty to match any domain)

Example: ["sales","service"]
environmentNamestringOptional

Name of dedicated environment (only for environment-targeted rules)

Example: my-review-env
prioritynumber · max: 1000Optional

Priority for conflict resolution

Example: 10
descriptionstringOptional

Optional description explaining the assignment rule

Example: Updated: Feature branches use the development pool
isActivebooleanOptional

Whether this assignment rule is active

Example: true
Responses
chevron-right
200

Assignment rule updated successfully

application/json
idstringRequired

Unique identifier for the assignment

Example: rpa_1234567890
repositoryIdentifierstringRequired

Repository identifier

Example: flxbl-io/sf-core
targetTypestring · enumRequired

Target type: pool or environment

Example: poolPossible values:
poolTagstringOptional

Pool tag assigned (when targetType is pool)

Example: feature_dev
poolTypestring · enumOptional

Type of pool (SANDBOX or SCRATCH_ORG)

Example: SANDBOXPossible values:
environmentNamestringOptional

Dedicated environment name (when targetType is environment)

Example: my-review-env
branchPatternstringRequired

Branch pattern

Example: feature/*
domainPatternstringOptionalDeprecated

Domain pattern - DEPRECATED: Use domainPatterns instead

Example: sales
domainPatternsstring[]Required

Domain patterns

Example: ["sales","service"]
prioritynumberRequired

Priority for conflict resolution

Example: 10
descriptionstringOptional

Description of the rule

Example: Feature branches use the development pool
isActivebooleanRequired

Whether the rule is active

Example: true
createdAtstringRequired

Creation timestamp

Example: 2025-01-01T12:00:00Z
updatedAtstringRequired

Last update timestamp

Example: 2025-01-02T12:00:00Z
createdBystringRequired

User who created the assignment

Example: [email protected]
updatedBystringOptional

User who last updated the assignment

Example: [email protected]
versionnumberRequired

Document version for optimistic locking

Example: 1
put
/sfp/api/review/pools/assign/{id}

Delete an assignment rule

delete
Authorizations
Path parameters
idstringRequired

Assignment rule ID

Responses
delete
/sfp/api/review/pools/assign/{id}

No content

Last updated