v4

latestOpenAPI 3.0.02026-07-316584128.0 KB
GitHub App

Create GitHub repository mapping

Creates a new GitHub repository to Xata branch mapping.

post/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository

Path parameters

organizationIDstring required

Unique identifier of the organization

projectIDstring required

Unique identifier of the project

branchIDstring required

Unique identifier of the branch

Request body

githubRepositoryIDinteger required

GitHub repository ID

Response

Repository mapping created successfully

idstring required

Unique identifier of the mapping record

githubRepositoryIDinteger required

GitHub repository ID

projectstring required

Project ID this mapping is associated with

rootBranchIdstring required

ID of the root Xata branch mapped to this repository

createdAtstring date-time required

Timestamp when the mapping was created

updatedAtstring date-time required

Timestamp when the mapping was last updated