curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/granular-permissions \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"repo_id": "<string>",
"path_pattern": "<string>",
"access_level": "ADMIN",
"permission_type": "ALLOW_LT_EQ",
"evaluation_order": 123,
"created_unix": 123,
"updated_unix": 123,
"created_by": "<string>",
"last_updated_by": "<string>",
"user_id": "<string>",
"group_id": "<string>"
}
]
}List all granular permissions configured for this repository
curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/granular-permissions \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"repo_id": "<string>",
"path_pattern": "<string>",
"access_level": "ADMIN",
"permission_type": "ALLOW_LT_EQ",
"evaluation_order": 123,
"created_unix": 123,
"updated_unix": 123,
"created_by": "<string>",
"last_updated_by": "<string>",
"user_id": "<string>",
"group_id": "<string>"
}
]
}This API uses OAuth 2 with the implicit grant flow
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
3 - 128"example_id"
A list of granular permission objects
Show child attributes