curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/collaborators \
--header 'Authorization: Bearer <token>'{
"collaborators": [
{
"collaboration_id": "<string>",
"user_id": "<string>",
"access_mode": "READ",
"name": "<string>",
"email": "[email protected]"
}
],
"invites": [
{
"invite_id": 17,
"inviting_user_id": "<string>",
"invited_email": "[email protected]",
"access_mode": "READ",
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
}
]
}Get all collaborators and pending invites for repo
curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/collaborators \
--header 'Authorization: Bearer <token>'{
"collaborators": [
{
"collaboration_id": "<string>",
"user_id": "<string>",
"access_mode": "READ",
"name": "<string>",
"email": "[email protected]"
}
],
"invites": [
{
"invite_id": 17,
"inviting_user_id": "<string>",
"invited_email": "[email protected]",
"access_mode": "READ",
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
}
]
}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 collaborators and pending invites
Show child attributes