AI Retrievers

Generic, registry-driven metadata deploy: accepts a batch of components of any SDR metadata type (Flow, CustomField, ApexClass, LWC bundles, binary StaticResources, ...) and deploys them as one all-or-nothing unit (`rollbackOnError: true`). See `sdr_deploy.ts` for the per-type field rules (`xml` vs `xml`+`content` vs `files`) and `fullName` shape. Malformed requests (unknown type, wrong field for the type's shape, XML root mismatch, duplicate components) throw `BadRequestException`/`HttpException` and surface as an actual HTTP 400 — distinct from a Salesforce deploy failure, which returns 200 with `success: false` per component.

post/ai-retrievers/deploy-metadata-xml

Request

  • Base URL: https://api.sweep.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.sweep.io/ai-retrievers/deploy-metadata-xml
  • Auth: HTTP bearer

Request body

checkOnlyboolean required
ignoreWarningsboolean

Only honored on a checkOnly validation, where a Salesforce warning on an otherwise successful component is reported as a blocking error. When true those warnings are left out of errors; hard failures are unaffected. Ignored when checkOnly is false (a real deploy never reports warnings). Not forwarded to mdapi's own DeployOptions.

testLevel'NoTestRun' | 'RunSpecifiedTests' | 'RunLocalTests' | 'RunAllTestsInOrg'

Request-level, not per component: mdapi deploy options apply to the whole deployment. Required for Apex deploys/validations against production orgs (see sfdc_metadata_api.service.ts).

runTestsstring[]

Apex class names (not paths), used only with testLevel: 'RunSpecifiedTests'.

Changes

No recorded changes to this operation across all 1 revision of this API.