API Documentation
Authentication
Account
Content Generation
Repository Management
Repository Manipulation
Repository Commit Manipulation
Repository Workspace Manipulation
- GETList workspaces
- POSTCreate a workspace
- GETGet workspace details
- DELDelete workspace
- POSTUpdate workspace name
- POSTCheckout workspace ref
- GETWorkspace status
- POSTReset changes in workspace
- POSTMerge base branch into workspace
- GETGet workspace preferences
- PUTUpdate workspace preferences
- GETOther workspace statuses
Repository Branch Manipulation
Repository Tag Manipulation
Repository Shelves Manipulation
File Mutation
Repository Merge Manipulation
Collaborators
Repository Content Comparison
Organization Management
- GETList user's organizations
- POSTCreate organization
- GETGet organization details
- PATCHRename organization
- GETList organization repositories
- GETList organization members
- GETGet organization member details
- DELDelete a member from the organization
- GETList accessible repos
- POSTInvite a new member to the organization
- PATCHChange an organization member's role
- POSTLeave organization
- GETList organization subscription information
User Management
Repository Manipulation
Verify Git repository import
The git repo URL must have http credentials embedded or otherwise hosted on Github and the owner has the Diversion Github app integration set up.
POST
/
repos
/
import
/
check
Copy
Ask AI
curl --request POST \
--url https://api.diversion.dev/v0/repos/import/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"git_url": "<string>",
"import_level": 4,
"git_branch": "<string>"
}'
Copy
Ask AI
This response does not have an example.
Authorizations
This API uses OAuth 2 with the implicit grant flow
Body
application/json
Details of a git repo to import into Diversion
Response
204
Git repo can be imported.
Copy
Ask AI
curl --request POST \
--url https://api.diversion.dev/v0/repos/import/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"git_url": "<string>",
"import_level": 4,
"git_branch": "<string>"
}'
Copy
Ask AI
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.