Database
Create database
headers = {
'authorization': '[api token you created]'
}This API allows you to create a new Dolt database.
A description of the database.
Records from museums around the world.The name of the owner of the database.
dolthubThe name of the repository for the database.
museum-collectionsThe visibility of the database (public or private).
publicDatabase created successfully.
Bad request. The request was invalid or could not be processed.
Create pull request
This API allows you to create a new pull request.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsThe title of the pull request.
LACMA dataThe description of the pull request.
Records from the Los Angeles County of Museum.The name of the owner of the source branch.
liuliuThe name of the database containing the source branch.
museum-collectionsThe name of the source branch.
lacmaThe name of the owner of the destination branch.
dolthubThe name of the database containing the destination branch.
museum-collectionsThe name of the destination branch.
mainPull request created successfully.
Bad request. The request was invalid or could not be processed.
Get pull request details
Get information about a specific pull request.
The name of the database owner.
dolthubThe name of the database.
museum-collectionsID of the pull request
1Success
Bad request. The request was invalid or could not be processed.
Update a pull request
Updates a pull request by ID, including its title, description, and sets its state to be 'closed'.
The name of the database owner.
dolthubThe name of the database.
museum-collectionsID of the pull request to update.
1The updated title of the pull request.
Added new dataThe updated description of the pull request.
Added new data from LACMA museum.The updated state of the pull request (can only update to 'closed')
closedSuccess
Bad request. The request was invalid or could not be processed.
List pull requests
List pull requests
The name of the database owner.
dolthubThe name of the database.
museum-collectionsThe pageToken to get the next page of results
AWE2Nm9uMWQ23FSQ7oRTbCXYTLLvNDhNs5hIFebQFI66FW-SYXGSlh3XcUQ8zmtLQ00QgD0X5FZr5ZTAhvT2FfRrGog7OuUno9wdTIXFQpkkX0opYoJL6Vrn2emlXkMBTiZYMqChyhR92_Yxd58B0w5nMrfXFf8v7xfAkN46hwFilter pulls by state, can be Open, Closed, or Merged.
OpenFilter pulls by review status, can be Approved, AssignedReviewer, Rejected or Reviewed
ApprovedSearch by pull request title or author name.
testSuccess
Bad request. The request was invalid or could not be processed.
Create a pull request comment
Owner of the database
dolthubdatabase name
museum-collectionsPull request ID
66Comment to be added to the pull request
The pull request looks good!Success
Bad request. The request was invalid or could not be processed.
Merge pull request
This endpoint merges a pull request into the destination branch.
The name of the database owner.
dolthubThe name of the database.
museum-collectionsThe ID of the pull request to merge.
66The pull request was merged successfully.
Bad request. The request was invalid or could not be processed.
Poll the operation to check if the merge operation is done
The owner of the database
dolthubThe database name
museum-collectionsThe ID of the pull request
66The operation name to check
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12The status of the merge operation
Bad request. The request was invalid or could not be processed.
Upload a file
This endpoint allows you to upload a file to DoltHub to create, update, overwrite, or replace a table.
The name of the database owner.
dolthubThe name of the database.
museum-collectionsThe file to be uploaded.
Pull request created successfully.
Bad request. The request was invalid or could not be processed.
Poll the operation to check if the file import operation is done
The owner of the database
dolthubThe database name
museum-collectionsThe name of the branch to upload the file to.
mainThe operation name to check
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12The status of the file import operation
Bad request. The request was invalid or could not be processed.
Create a branch
This API endpoint allows you to create a new branch in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsThe type of revision, can be either 'branch', 'ref' or 'commit'.
branchThe name of revision. If revisionType is 'branch', this is the name of the base branch. If revisionType is 'commit', this is the commit hash.
mainThe name of the new branch.
feature-branchSuccess
Bad request. The request was invalid or could not be processed.
List branches
This API endpoint allows you to list all branches in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsSuccess
Bad request. The request was invalid or could not be processed.
Create a tag
This API endpoint allows you to create a new tag in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsThe name of the tag.
v1The description of the tag.
First version of the databaseThe type of revision, can be either 'branch', 'ref' or 'commit'.
branchThe name of revision. If revisionType is 'branch', this is the name of the base branch. If revisionType is 'commit', this is the commit hash.
mainSuccess
Bad request. The request was invalid or could not be processed.
List tags
This API endpoint allows you to list all tags in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsSuccess
Bad request. The request was invalid or could not be processed.
Create a release
List releases
This API endpoint allows you to list all releases in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsThe next page token.
1234567890Success
Bad request. The request was invalid or could not be processed.
List operations
This API endpoint allows you to list all operations that are created by the user.
The name of the user who initiated the operations. This user's name must match the user associated with the api token.
liuliuSpecific type of operation for this query. Supported operation types are SqlWrite, SqlRead, Import, Merge, Migrate.
SqlWriteToken for the next page of results
AWE2Nm9uMWQ26pQQpqLNLXu7a60647lpiZoDFrf5WDGHo68XNC-rfr068rymbEdUHCXidRxx7_fwGBMSzQi6C_D50NcJFXm0BwRnGmmHEL4T4xxkWoX3sL5mKD-PuMRuxeHPsR0NB5Rzi70jGzblVlfBTIHPJ20c630pNLrI_spxH0tYTzMnQ4uPpr3ub9P50FEH9i4Au0gUkmvj8NUibbGWi-R1AJYplEPr=Success
Bad request. The request was invalid or could not be processed.
List jobs
This API endpoint allows you to list all jobs in your database.
The name of the owner of the database.
dolthubThe name of the database.
museum-collectionsSuccess
Bad request. The request was invalid or could not be processed.
Last updated
Was this helpful?