v4
latestOpenAPI 3.1.02026-08-02261331761.5 KBPolicy Git Repositories
Create Policy Repo
Creates a new policy repository configuration under a given project. The given repository is created with status 'pending', it will be changed and used as the 'active' repository for the policy only after a successful attempt to use it. The repository main branch must be present in the remote.
post/v2/projects/{proj_id}/repos
Path parameters
proj_idstring required
Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
Request body
Response
Successful Response