The API of the Digger Orchestrator is neither stable, nor fully documented.
Use at your own risk. For full reference of API endpoints, check out
/backend/bootstrap/main.go
Every request you make to the API must include a Bearer token for authorization. You can pass this token in the headers of your HTTP request with the key Authorization and the value Bearer YOUR_TOKEN.
Copy
Ask AI
headers = {"Authorization": "Bearer YOUR_TOKEN"}
Replace YOUR_TOKEN with your admin or access token.
PUT /repos/:namespace/projects/:projectName/access-policy
For an entire organisation:
Copy
Ask AI
PUT /orgs/:organisation/access-policy
For these requests, your request body should contain a policy document written as an OPA policy with package digger and expected to have the “allow” rule.