API
GitlabConnection
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{org_slug}/gitlab/connections/{connection_id}/control |
create |
Success |
POST |
/api/v1/organizations/{org_slug}/gitlab/connections/{connection_id}/retry |
create |
Success |
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/organizations/{org_slug}/gitlab/connections/{connection_id}/control
Operation ID: post_api_v1_organizations_org_slug_gitlab_connections_connection_id_control.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
connection_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
action_name |
enum: pause, resume, disconnect, sync, replace, remap |
Yes | |
integration_id |
string |
No | |
source_branch |
string |
No |
Responses
200: Success
application/json
The response is object.
204: Sync control applied
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{org_slug}/gitlab/connections/{connection_id}/retry
Operation ID: post_api_v1_organizations_org_slug_gitlab_connections_connection_id_retry.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
connection_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
202: GitLab source integration
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_retry |
boolean |
Yes | |
error_message |
string |
Yes | |
gitlab_project_id |
integer |
Yes | |
id |
string |
Yes | |
import_detail |
string |
Yes | |
import_status |
enum: queued, running, succeeded, failed |
Yes | |
import_terminal |
boolean |
Yes | |
integration_id |
string |
No | |
path_with_namespace |
string |
Yes | |
repo_slug |
string |
Yes | |
repository_id |
string |
Yes | The workspace repository, reserved when the import starts. |
source_branch |
string |
Yes | |
status |
string |
Yes | |
web_url |
string |
Yes |