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.
SuccessRecords from museums around the world.dolthubmuseum-collectionspublicBad 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.
SuccessThe 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.
mainThe id of the created pull request.
66Bad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionsPull request ID
1Title of the pull request
Added new dataDescription of the pull request
Added missing museums, sourced from museums.comState of the pull request
mergedOwner of database of the source branch.
liuliuDatabase name of source branch.
museum-collectionsName of the source branch.
featureOwner of database of the destination branch.
dolthubDatabase name of destination branch.
museum-collectionsName of the destination branch.
mainTime at which the pull request was created
2023-07-01T18:00:00ZAuthor of the pull request
liuliuBad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionsUpdated pull request ID
1Title of the pull request after update
Added new dataDescription of the pull request after update
Added new data from LACMA museum.State of the pull request after update
closedBad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionspage token for the next page of results
AWE2Nm9uMWQ23FSQ7oRTbCXYTLLvNDhNs5hIFebQFI66FW-SYXGSlh3XcUQ8zmtLQ00QgD0X5FZr5ZTAhvT2FfRrGog7OuUno9wdTIXFQpkkX0opYoJL6Vrn2emlXkMBTiZYMqChyhR92_Yxd58B0w5nMrfXFf8v7xfAkN46hwBad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionsPull request ID
66Comment added to the pull request
The pull request looks good!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.
Successdolthubmuseum-collections66The job id that is performing the merge.
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12The operation id that is associated to the merge job. It corresponds to the 'operation_name' field returned in the response of the list operations API.
users/liuliu/userOperations/5e4834c9-375d-4bbd-bdaf-09eb0734127cBad 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
The status of the operation, Success if the merge was successful
SuccessThe operation name
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12True if the job is created, False otherwise
trueThe owner of the database
dolthubThe name of the database
museum-collectionsThe ID of the pull request
66The status of the job, In Progress if the job is still running, Completed if the job is done, Pending if the job is waiting to be run
In ProgressBad 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.
Successdolthubmuseum-collectionsmainlacmaThe job id that is performing the upload.
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12The operation id that is associated to the upload job. It corresponds to the 'operation_name' field returned in the response of the list operations API.
users/liuliu/userOperations/5e4834c9-375d-4bbd-bdaf-09eb0734127cBad 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
The status of the operation, Success if the file import was successful
SuccessThe operation name
repositoryOwners/dolthub/repositories/museum-collections/jobs/b09a9221-9dcb-4a15-9ca8-a64656946f12True if the import job is created, False otherwise
trueThe owner of the database
dolthubThe name of the database
museum-collectionsThe ID of the pull request that the import job created. This is only present if the import job is completed
66The status of the job, In Progress if the job is still running, Completed if the job is done, Pending if the job is waiting to be run
CompletedBad 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
Status of the create branch operation
SuccessOwner of the database
dolthubDatabase name
museum-collectionsName of the new branch
feature-branchType of the revision
branchName of the revision
mainBad 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
Status of the request.
SuccessOwner of the database
dolthubDatabase name
museum-collectionsBad 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
Status of the create branch operation
SuccessOwner of the database
dolthubDatabase name
museum-collectionsName of the tag
v1Description of the tag
First version of the databaseType of the revision
branchName of the revision
mainBad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionsBad 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
Status of the request
SuccessOwner of the database
dolthubDatabase name
museum-collectionsNext page token
1234567890Bad 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
Status of the request.
SuccessToken for the next page of results
AWE2Nm9uMWQ26pQQpqLNLXu7a60647lpiZoDFrf5WDGHo68XNC-rfr068rymbEdUHCXidRxx7_fwGBMSzQi6C_D50NcJFXm0BwRnGmmHEL4T4xxkWoX3sL5mKD-PuMRuxeHPsR0NB5Rzi70jGzblVlfBTIHPJ20c630pNLrI_spxH0tYTzMnQ4uPpr3ub9P50FEH9i4Au0gUkmvj8NUibbGWi-R1AJYplEPr=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
Status of the request.
SuccessName of the owner of the database
dolthubName of the database
museum-collectionsToken for the next page of results
AWE2Nm9uMWQ2M84_Q_ajmYOdCDIg_Ac8OuedPyAGoTT3TsBNnTSE29QPb6oJmZdbjYwdFjTwu6_ioVx4nsp3eCPoO5zyATKGsauocvy4onXjoWGfqmatl2dcm-2Ks45NPT0qRPu37HjVcaC0Qj2X5_KHcYI70fzOLn1RogexmtBlf_AtI3os4DntzhZtfp9GFtHiVekppo_26viXiKcjy0DpKay5Bad request. The request was invalid or could not be processed.
Last updated
Was this helpful?