---
title: "Auto-provision and validate all applications"
method: POST
path: "/api/v2/runtimeValidation/autoProvisionAndValidateRepository"
tags: ["Runtime Validation"]
---

# Auto-provision and validate all applications

`POST /api/v2/runtimeValidation/autoProvisionAndValidateRepository`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/runtimeValidation/autoProvisionAndValidateRepository`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Provision a SOURCE_BUILD runtime validation profile for every detected application in a repository and queue a full-application validation run for each (one isolated container per application), with no manual profile configuration. Applications already having a pending or processing run are skipped. Use a completed successful FullScan id for the repository.

## Request body

- RuntimeValidationAutoProvisionRepositoryRequest
  - `organizationId` string
  - `repositoryId` string, required
  - `codeScanId` string, required: Completed successful FullScan id for the repository whose applications should be auto-provisioned.

## Response `200`

Auto-provision summary

- RuntimeValidationAutoProvisionRepositoryResult
  - `startedRunIds` string[], required: Ids of the runtime validation runs queued by this request (one per application provisioned).
  - `skippedCount` integer, required: Applications skipped because a runtime validation run was already pending or processing.
  - `totalApplications` integer, required: Total applications detected in the repository.

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response
- `404`: Error Response
- `409`: Error Response
- `412`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
