Add one or more git repository permissions to a specific organization within your enterprise.
Path Parameters
The unique identifier of the organization to add permissions to
Request Body
Array of permission objects to add
The unique identifier of the git connection
Array of strings representing the repository path (e.g., [“owner”, “repo-name”]). Must specify exactly one of repo_path or group_prefix.
Array of strings representing the group prefix for organization-wide permissions. Must specify exactly one of repo_path or group_prefix.
Response
curl -X POST "https://api.devin.ai/v2/enterprise/organizations/org_123/git/permissions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"connection_id": "conn_123",
"repo_path": ["company", "backend-api"]
},
{
"connection_id": "conn_456",
"group_prefix": ["engineering"]
}
]'