post https://testops.katalon.io/api/v1/git/create
A successful request to this endpoint creates a new Git test project, and returns the new Git test project details.
Request
This request uses the GET method to retrieve details about a specific Git repository. For basic authorization, replace this with your username and password (or API key) in the username:password
or username:api_key
format. Your user credentials are combined to form a Base64-encoded string.
The request data is provided as a JSON object. You need to provide the following required query parameters:
id
: The unique identifier of the repository to retrieve.
You need to provide the following required path parameters:
expandDetails
: If set totrue
, retrieves additional repository details. Defaults tofalse
.includeStatistics
: If set totrue
, include usage statistics in the response. Defaults tofalse
.
Response
The response returns the newly created Git test project.
See the following example:
{
"id": 0,
"testProjectId": 0,
"name": "string",
"repository": "string",
"branch": "string",
"username": "string",
"password": "string",
"accessKeyId": "string",
"secretAccessKey": "string",
"projectId": 0,
"description": "string",
"vcsType": "GITHUB",
"shouldMergeTestResultsForNewScriptRepo": true,
"teamId": 0,
"createdAt": "2025-01-20T02:40:34.252Z",
"updatedAt": "2025-01-20T02:40:34.252Z"
}
Refer to the following table about the response body properties:
Property | Type | Description |
---|---|---|
id | Integer | Unique identifier of the repository. |
testProjectId | Integer | ID of the associated test project. |
name | String | Name of the repository. |
repository | String | URL of the repository. |
branch | String | Branch name. |
username | String | Username for repository access. |
password | String | Password for repository access. |
accessKeyId | String | AWS access key ID (if applicable). |
secretAccessKey | String | AWS secret access key (if applicable). |
projectId | Integer | ID of the project associated with this repository. |
description | String | Description of the repository. |
vcsType | String | Type of version control system (e.g., "GITHUB "). |
shouldMergeTestResultsForNewScriptRepo | Boolean | Indicates if test results should be merged for a new script repository. |
teamId | Integer | Team ID associated with the repository. |
createdAt | String | Creation timestamp in ISO 8601 format. |
updatedAt | String | Last updated timestamp in ISO 8601 format. |
Try it!
- Enter the required (and optional, if applicable) fields below.
- Select the language in Language.
- Enter your user name or API credentials.
- Review your API call and click Try it!