post
https://api.freight.fyi/api/v1/paycargo_utils/migrate_by_match_code
Migrate containers by match code to cpp-test environment.
This endpoint calls the payc_migrator Lambda function which queries the production database for containers matching the given match code (supports * wildcards), then enqueues them for migration to cpp-test via the db_seed Lambda function.
Match Code Wildcards:
FLEXPO7- Exact matchFLEX*- Matches FLEXPO7, FLEXPO8, etc.*TEST*- Matches anything containing TEST
Example:
{
"match_code": "FLEXPO7",
"skip_validation": false
}
Returns: Response from the Lambda function with migration results.
Notes:
- Containers are always migrated to
cpp-testenvironment skip_validation=trueskips validation checks in Lambda for faster processing- The Lambda function handles concurrent enqueueing of containers