Set Default Git Repositories
PUT/api/background-agents/git-proxy/default-repos
Replaces the organization's default Git repositories. A repository left out is removed, and "repos": [] removes them all, so read the list first with Get Default Git Repositories to add one.
The change applies to every agent with Git on, on its next git command. Agents with Git off are not affected. On Willow Agents, Claude Managed Agents, and AWS AgentCore, deploy an agent again so its instructions list the new repositories.
Requires admin:write.
Request
Responses
- 200
- 400
- 401
- 403
- 500
The stored default repositories
Invalid request body, for example a full_name that is not owner/name. Nothing is changed.
Authentication required or invalid token
The token is valid but its scopes do not permit this operation. Every endpoint enforces the scopes described in API Tokens, so any of them can return this.
Internal server error