GitLab API
Use these operations to interact with the GitLab integration in Cortex.
Required permissions
Your API key must have the Configure integrations
permission.
Operations
Successfully found configurations
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/gitlab/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
]
}
Successfully found default configuration
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/gitlab/default-configuration HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
Successfully found configuration
Bad Request
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/gitlab/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
Successfully added configuration
Bad Request
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/gitlab/configuration HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"personalAccessToken": "text"
}
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
]
}
Successfully validated all configurations
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/gitlab/configuration/validate HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"isValid": true,
"message": "text"
}
]
}
Successfully validated configuration
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/gitlab/configuration/validate/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"alias": "text",
"isValid": true,
"message": "text"
}
WARNING: Updating aliases for configurations or changing the default configuration could cause entity YAMLs that use this integration to break.
Successfully updated configuration
Bad Request
Forbidden
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
PUT /api/v1/gitlab/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true
}
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
]
}
Successfully added configurations
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/gitlab/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"personalAccessToken": "text"
}
]
}
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
],
"skippedConfigurations": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
Successfully deleted all configurations
Bad Request
Forbidden
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
DELETE /api/v1/gitlab/configurations HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Successfully deleted configuration
Bad Request
Forbidden
Configuration not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
DELETE /api/v1/gitlab/configuration/{alias} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"configurations": [
{
"alias": "text",
"groupNames": [
"text"
],
"hidePersonalProjects": true,
"host": "text",
"isDefault": true,
"lastFour": "text"
}
]
}
Last updated
Was this helpful?