Skip to main content

Server API v1

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Kraken Server REST API

Authentication

  • HTTP Authentication, scheme: bearer

Management

get_server_version​

Code samples

# You can also use wget
curl -X GET /bk/api/version \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /version

Get server version

Get server version

Example responses

200 Response

{
"version": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyServerVersion

get_systems​

Code samples

# You can also use wget
curl -X GET /bk/api/systems \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /systems

Get systems

Get systems

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string",
"executor": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKAn array of systemSystems
defaultDefaultunexpected errorApiError

get_projects​

Code samples

# You can also use wget
curl -X GET /bk/api/projects \
-H 'Authorization: Bearer {access-token}'

GET /projects

Get projects

Get projects

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

create_project​

Code samples

# You can also use wget
curl -X POST /bk/api/projects \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /projects

Create a project

Create a new project

Body parameter

{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}

Parameters

NameInTypeRequiredDescription
bodybodyProjectfalseproject

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

get_project​

Code samples

# You can also use wget
curl -X GET /bk/api/projects/{project_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /projects/{project_id}

Get project

Get project details

Parameters

NameInTypeRequiredDescription
project_idpathinteger(int64)trueID of project
with_resultsquerybooleanfalsewith results

Example responses

200 Response

{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}

Responses

StatusMeaningDescriptionSchema
200OKProject detailsProject

update_project​

Code samples

# You can also use wget
curl -X PUT /bk/api/projects/{project_id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /projects/{project_id}

Update a project

Update project settings

Body parameter

{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}

Parameters

NameInTypeRequiredDescription
project_idpathinteger(int64)trueID of project
bodybodyProjectfalseproject

Example responses

200 Response

{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyProject

delete_project​

Code samples

# You can also use wget
curl -X DELETE /bk/api/projects/{project_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /projects/{project_id}

Delete a project

Delete a project

Parameters

NameInTypeRequiredDescription
project_idpathinteger(int64)trueID of project

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted projectNone

Response Schema

create_secret​

Code samples

# You can also use wget
curl -X POST /bk/api/projects/{project_id}/secrets \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /projects/{project_id}/secrets

Create a secret

Create a new secret

Body parameter

{
"id": 0,
"name": "string",
"project_id": 0,
"project_name": "string",
"kind": "string",
"username": "string",
"key": "string"
}

Parameters

NameInTypeRequiredDescription
project_idpathinteger(int64)trueID of project
bodybodySecretfalsesecret

Example responses

201 Response

{
"id": 0,
"name": "string",
"project_id": 0,
"project_name": "string",
"kind": "string",
"username": "string",
"key": "string"
}

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runSecret

update_secret​

Code samples

# You can also use wget
curl -X PUT /bk/api/secrets/{secret_id} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /secrets/{secret_id}

Update a secret

Update secret settings

Body parameter

{
"id": 0,
"name": "string",
"project_id": 0,
"project_name": "string",
"kind": "string",
"username": "string",
"key": "string"
}

Parameters

NameInTypeRequiredDescription
secret_idpathinteger(int64)trueID of secret
bodybodySecretfalsesecret

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfullyNone

Response Schema

delete_secret​

Code samples

# You can also use wget
curl -X DELETE /bk/api/secrets/{secret_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /secrets/{secret_id}

Delete a secret

Delete a secret

Parameters

NameInTypeRequiredDescription
secret_idpathinteger(int64)trueID of secret

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted secretNone

Response Schema

create_branch​

Code samples

# You can also use wget
curl -X POST /bk/api/projects/{project_id}/branches \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /projects/{project_id}/branches

Create a branch

Create a new branch

Body parameter

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"name": "string",
"branch_name": "string",
"project_id": 0,
"project_name": "string",
"forking_model": "string",
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"flows": {},
"retention_policy": {
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}
}

Parameters

NameInTypeRequiredDescription
project_idpathinteger(int64)trueID of pet to return
bodybodyBranchfalsebranch

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

get_workflow_schema​

Code samples

# You can also use wget
curl -X GET /bk/api/workflow-schema \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /workflow-schema

Get workflow schema

Example responses

200 Response

{}

Responses

StatusMeaningDescriptionSchema
200OKWorkflow schemaInline
defaultDefaultunexpected errorApiError

Response Schema

update_branch​

Code samples

# You can also use wget
curl -X PUT /bk/api/branches/{branch_id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /branches/{branch_id}

Update a branch

Update branch

Body parameter

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"name": "string",
"branch_name": "string",
"project_id": 0,
"project_name": "string",
"forking_model": "string",
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"flows": {},
"retention_policy": {
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}
}

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch
bodybodyBranchfalsebranch

Example responses

200 Response

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"name": "string",
"branch_name": "string",
"project_id": 0,
"project_name": "string",
"forking_model": "string",
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"flows": {},
"retention_policy": {
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyBranch

delete_branch​

Code samples

# You can also use wget
curl -X DELETE /bk/api/branches/{branch_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /branches/{branch_id}

Delete a branch

Delete a branch

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted branchNone

Response Schema

get_branch​

Code samples

# You can also use wget
curl -X GET /bk/api/branches/{branch_id}/cfg \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /branches/{branch_id}/cfg

List all results

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"name": "string",
"branch_name": "string",
"project_id": 0,
"project_name": "string",
"forking_model": "string",
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"flows": {},
"retention_policy": {
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsBranch
defaultDefaultunexpected errorApiError

get_branch_sequences​

Code samples

# You can also use wget
curl -X GET /bk/api/branches/{branch_id}/sequences \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /branches/{branch_id}/sequences

List branch sequences

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch

Example responses

200 Response

{
"items": [
{
"id": 0,
"branch_name": "string",
"branch_id": 0,
"stage_name": "string",
"stage_id": 0,
"kind": 0,
"value": 0
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKAn array of branch sequencesBranchSequences
defaultDefaultunexpected errorApiError

update_branch_sequence​

Code samples

# You can also use wget
curl -X PUT /bk/api/sequences/{seq_id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /sequences/{seq_id}

Set branch sequence value

Body parameter

{
"value": 0
}

Parameters

NameInTypeRequiredDescription
seq_idpathinteger(int64)trueID of sequence
bodybodyobjectfalseValue
» valuebodyinteger(int64)falsenone

Example responses

200 Response

{
"id": 0,
"branch_name": "string",
"branch_id": 0,
"stage_name": "string",
"stage_id": 0,
"kind": 0,
"value": 0
}

Responses

StatusMeaningDescriptionSchema
200OKAn array of branch sequencesBranchSequence
defaultDefaultunexpected errorApiError

get_branch_stats​

Code samples

# You can also use wget
curl -X GET /bk/api/branches/{branch_id}/stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /branches/{branch_id}/stats

Stats of a branch

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch

Example responses

200 Response

{
"id": 0,
"ci": {
"flows_total": 0,
"flows_last_week": 0,
"flows_last_month": 0,
"avg_duration_last_month": 0,
"avg_duration_last_week": 0,
"durations": [
{
"flow_label": "string",
"duration": 0
}
]
},
"dev": {
"flows_total": 0,
"flows_last_week": 0,
"flows_last_month": 0,
"avg_duration_last_month": 0,
"avg_duration_last_week": 0,
"durations": [
{
"flow_label": "string",
"duration": 0
}
]
}
}

Responses

StatusMeaningDescriptionSchema
200OKBranch statsBranchStats
defaultDefaultunexpected errorApiError

create_stage​

Code samples

# You can also use wget
curl -X POST /bk/api/branches/{branch_id}/stages \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /branches/{branch_id}/stages

Create a stage

Create a new stage

Body parameter

{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of pet to return
bodybodyStagefalsestage

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

move_branch​

Code samples

# You can also use wget
curl -X PUT /bk/api/branches/{branch_id}/project_id \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /branches/{branch_id}/project_id

Move a branch to another project

Move a branch to another project

Body parameter

{
"project_id": 0
}

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch
bodybodyobjecttrueproject id
» project_idbodyinteger(int64)falsenone

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

update_branch_retention_policy​

Code samples

# You can also use wget
curl -X PUT /bk/api/branches/{branch_id}/retention_policy \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /branches/{branch_id}/retention_policy

Update branch retention policy

Update branch retention policy

Body parameter

{
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of branch
bodybodyRetentionPolicytrueretention policy details

Example responses

default Response

{
"code": 0,
"message": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully created runNone
defaultDefaultunexpected errorApiError

Response Schema

get_stage​

Code samples

# You can also use wget
curl -X GET /bk/api/stages/{stage_id} \
-H 'Authorization: Bearer {access-token}'

GET /stages/{stage_id}

Get a stage

Get stage settings

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueID of pet to return

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

update_stage​

Code samples

# You can also use wget
curl -X PUT /bk/api/stages/{stage_id} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /stages/{stage_id}

Update a stage

Update stage settings

Body parameter

{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueID of pet to return
bodybodyStagetruestage

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

delete_stage​

Code samples

# You can also use wget
curl -X DELETE /bk/api/stages/{stage_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /stages/{stage_id}

Delete a stage

Delete a stage

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueID of pet to return

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted stageNone

Response Schema

get_stage_schema_as_json​

Code samples

# You can also use wget
curl -X PUT /bk/api/stages/{stage_id}/schema \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /stages/{stage_id}/schema

Execute schema_code and return schema in JSON format

Body parameter

{
"schema_code": "string"
}

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueID of pet to return
bodybodyStageSchemaCodefalseSchema code to execute

Example responses

200 Response

{
"stage_id": 0,
"schema": "string",
"error": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsStageSchemaJson
defaultDefaultunexpected errorApiError

get_stage_schedule​

Code samples

# You can also use wget
curl -X GET /bk/api/stages/{stage_id}/schedule \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /stages/{stage_id}/schedule

Get schedule info for stage if there are time triggers configured.

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueStage ID

Example responses

200 Response

{
"schedules": [
{
"name": "string",
"job_id": "string",
"next_run_time": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKAn array of schedulesStageSchedule
defaultDefaultunexpected errorApiError

get_last_rq_jobs_names​

Code samples

# You can also use wget
curl -X GET /bk/api/last-rq-jobs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /last-rq-jobs

Get rq logs

Get last rq jobs names

Example responses

200 Response

{
"items": [
{
"time": "string",
"name": "string",
"lines": 0
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsRQJobNames
defaultDefaultunexpected errorApiError

get_services_logs​

Code samples

# You can also use wget
curl -X GET /bk/api/services-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /services-logs

Get services logs

Get services logs

Parameters

NameInTypeRequiredDescription
servicesqueryarray[string]falseID of pet to return
levelquerystringfalselog level

Example responses

200 Response

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"path": "string",
"lineno": "string",
"level": "string",
"branch": "string",
"flow_kind": "string",
"flow": "string",
"run": "string",
"job": "string",
"tool": "string",
"step": "string",
"agent": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsServicesLogs
defaultDefaultunexpected errorApiError

get_live_data​

Code samples

# You can also use wget
curl -X GET /bk/api/live-data \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /live-data

Get errors in logs count in the last hour

Get errors in logs count in the last hour

Example responses

200 Response

{
"error_logs_count": 0,
"authorized_agents": 0,
"non_authorized_agents": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsLiveData
defaultDefaultunexpected errorApiError

get_agents​

Code samples

# You can also use wget
curl -X GET /bk/api/agents \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /agents

Get agents

Get agents

Parameters

NameInTypeRequiredDescription
unauthorizedquerybooleanfalseID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
sort_fieldquerystringfalsenone
sort_dirquerystringfalsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsAgents
defaultDefaultunexpected errorApiError

update_agents​

Code samples

# You can also use wget
curl -X PATCH /bk/api/agents \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PATCH /agents

Update agents

Update agents

Body parameter

[
{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}
]

Parameters

NameInTypeRequiredDescription
bodybodyAgentfalseList of modified agents

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsAgents
defaultDefaultunexpected errorApiError

get_agent​

Code samples

# You can also use wget
curl -X GET /bk/api/agents/{agent_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /agents/{agent_id}

Get agent

Get agent details

Parameters

NameInTypeRequiredDescription
agent_idpathinteger(int64)trueID of agent

Example responses

200 Response

{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}

Responses

StatusMeaningDescriptionSchema
200OKAgent detailsAgent

update_agent​

Code samples

# You can also use wget
curl -X PUT /bk/api/agents/{agent_id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /agents/{agent_id}

Update a agent

Update agent settings

Body parameter

{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}

Parameters

NameInTypeRequiredDescription
agent_idpathinteger(int64)trueID of agent
bodybodyAgentfalseagent

Example responses

200 Response

{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyAgent

delete_agent​

Code samples

# You can also use wget
curl -X DELETE /bk/api/agents/{agent_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /agents/{agent_id}

Delete a agent

Delete a agent

Parameters

NameInTypeRequiredDescription
agent_idpathinteger(int64)trueID of agent

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted agentNone

Response Schema

get_groups​

Code samples

# You can also use wget
curl -X GET /bk/api/groups \
-H 'Authorization: Bearer {access-token}'

GET /groups

Get groups

Get groups

Parameters

NameInTypeRequiredDescription
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyNone

Response Schema

create_group​

Code samples

# You can also use wget
curl -X POST /bk/api/groups \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /groups

Create a group

Create a new group

Body parameter

{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}

Parameters

NameInTypeRequiredDescription
bodybodyGroupfalsegroup

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created groupNone

Response Schema

get_group​

Code samples

# You can also use wget
curl -X GET /bk/api/groups/{group_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /groups/{group_id}

Get group

Get group details

Parameters

NameInTypeRequiredDescription
group_idpathinteger(int64)trueID of group

Example responses

200 Response

{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}

Responses

StatusMeaningDescriptionSchema
200OKGroup detailsGroup

update_group​

Code samples

# You can also use wget
curl -X PUT /bk/api/groups/{group_id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /groups/{group_id}

Update a group

Update group settings

Body parameter

{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}

Parameters

NameInTypeRequiredDescription
group_idpathinteger(int64)trueID of group
bodybodyGroupfalsegroup

Example responses

200 Response

{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyGroup

delete_group​

Code samples

# You can also use wget
curl -X DELETE /bk/api/groups/{group_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /groups/{group_id}

Delete a group

Gelete group settings

Parameters

NameInTypeRequiredDescription
group_idpathinteger(int64)trueID of group

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyNone

Response Schema

get_aws_ec2_regions​

Code samples

# You can also use wget
curl -X GET /bk/api/aws-ec2-regions \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /aws-ec2-regions

Get settings

Get settings details

Example responses

200 Response

{
"items": [
{
"Endpoint": "string",
"RegionName": "string",
"OptInStatus": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSettings detailsAwsEc2Regions

get_aws_ec2_instance_types​

Code samples

# You can also use wget
curl -X GET /bk/api/aws-ec2-instance-types/{region} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /aws-ec2-instance-types/{region}

Get settings

Get settings details

Parameters

NameInTypeRequiredDescription
regionpathstringtrueID of group

Example responses

200 Response

{
"items": [
{
"InstanceType": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSettings detailsAwsEc2InstanceTypes

get_azure_locations​

Code samples

# You can also use wget
curl -X GET /bk/api/azure-locations \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /azure-locations

Get settings

Get settings details

Example responses

200 Response

{
"items": [
"string"
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSettings detailsAzureLocations

get_azure_vm_sizes​

Code samples

# You can also use wget
curl -X GET /bk/api/azure-vm-sizes/{location} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /azure-vm-sizes/{location}

Get settings

Get settings details

Parameters

NameInTypeRequiredDescription
locationpathstringtrueID of group

Example responses

200 Response

{
"items": [
"string"
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSettings detailsAzureVmSizes

get_settings​

Code samples

# You can also use wget
curl -X GET /bk/api/settings \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /settings

Get settings

Get settings details

Example responses

200 Response

{
"general": {},
"notification": {},
"monitoring": {}
}

Responses

StatusMeaningDescriptionSchema
200OKSettings detailsSettings

update_settings​

Code samples

# You can also use wget
curl -X PUT /bk/api/settings \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /settings

Update a project

Update project settings

Body parameter

{
"general": {},
"notification": {},
"monitoring": {}
}

Parameters

NameInTypeRequiredDescription
bodybodySettingsfalsesettings details

Example responses

200 Response

{
"general": {},
"notification": {},
"monitoring": {}
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullySettings

get_settings_working_state​

Code samples

# You can also use wget
curl -X GET /bk/api/settings/{resource}/working-state \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /settings/{resource}/working-state

Check if email or AWS settings are working

Check if email or AWS settings are working

Parameters

NameInTypeRequiredDescription
resourcepathstringtrueID of pet to return

Example responses

200 Response

{
"state": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullySettingsWorkingState

get_diagnostics​

Code samples

# You can also use wget
curl -X GET /bk/api/diagnostics \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /diagnostics

Get health status of Kraken services.

Get health status of Kraken services.

Example responses

200 Response

{}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyDiagnostics

get_tools​

Code samples

# You can also use wget
curl -X GET /bk/api/tools \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /tools

List tools

List tools

Parameters

NameInTypeRequiredDescription
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
sort_fieldquerystringfalsenone
sort_dirquerystringfalsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyTools

create_or_update_tool​

Code samples

# You can also use wget
curl -X POST /bk/api/tools \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /tools

Create or update a tool

Create a new tool or update existing version

Body parameter

{
"id": 0,
"name": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyToolfalsegroup

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created groupNone

Response Schema

delete_tool​

Code samples

# You can also use wget
curl -X DELETE /bk/api/tools/{tool_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

DELETE /tools/{tool_id}

Delete tool

List tools

Parameters

NameInTypeRequiredDescription
tool_idpathinteger(int32)trueID of tool

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyTools

get_tool_versions​

Code samples

# You can also use wget
curl -X GET /bk/api/tools/{name} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /tools/{name}

List tools

List tools

Parameters

NameInTypeRequiredDescription
namepathstringtrueName of tool
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
sort_fieldquerystringfalsenone
sort_dirquerystringfalsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyTools

upload_new_or_overwrite_tool​

Code samples

# You can also use wget
curl -X POST /bk/api/tools/{name}/zip \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer {access-token}'

POST /tools/{name}/zip

Upload new tool or existing one

Upload code of a tool and create new one or overwrite existing version

Body parameter

meta:
id: 0
name: string
file: string

Parameters

NameInTypeRequiredDescription
namepathstringtrueName of tool
bodybodyobjectfalsenone
» metabodyToolfalsenone
»» idbodyinteger(int64)falsenone
»» namebodystringfalsenone
» filebodystring(binary)falsenone

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created groupNone

Response Schema

create_rq_entry​

Code samples

# You can also use wget
curl -X POST /bk/api/rq/queue \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /rq/queue

Create new entry in RQ

Create new entry in RQ

Body parameter

{
"func_name": "string",
"args": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyRQEntryfalseRQ Entry

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created groupNone

Response Schema

Users

login​

Code samples

# You can also use wget
curl -X POST /bk/api/sessions \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'

POST /sessions

Create a session ie. log in.

Body parameter

{
"user": "string",
"password": "string",
"method": "string",
"oidc_provider": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyobjectfalseproject
» userbodystringfalsenone
» passwordbodystringfalsenone
» methodbodystringfalsenone
» oidc_providerbodystringfalsenone

Example responses

201 Response

{
"id": 0,
"token": "string"
}

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created session.Session

get_session​

Code samples

# You can also use wget
curl -X GET /bk/api/sessions/{session_token} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /sessions/{session_token}

Get session data

Get user session data

Parameters

NameInTypeRequiredDescription
session_tokenpathstringtruesession token

Example responses

200 Response

{
"id": 0,
"token": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully created session.Session

logout​

Code samples

# You can also use wget
curl -X DELETE /bk/api/sessions/{session_token} \
-H 'Authorization: Bearer {access-token}'

DELETE /sessions/{session_token}

Logout

Logut

Parameters

NameInTypeRequiredDescription
session_tokenpathstringtruesession token

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted sessionNone

Response Schema

get_users​

Code samples

# You can also use wget
curl -X GET /bk/api/users \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /users

List users

List users

Parameters

NameInTypeRequiredDescription
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
sort_fieldquerystringfalsenone
sort_dirquerystringfalsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyUsers

create_user​

Code samples

# You can also use wget
curl -X POST /bk/api/users \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /users

Create a user

Create a new user

Body parameter

{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}

Parameters

NameInTypeRequiredDescription
bodybodyUserfalsegroup

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created userNone

Response Schema

get_user​

Code samples

# You can also use wget
curl -X GET /bk/api/users/{user_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /users/{user_id}

Get user details

Get user details

Parameters

NameInTypeRequiredDescription
user_idpathinteger(int32)trueID of user

Example responses

200 Response

{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyUser

change_user_details​

Code samples

# You can also use wget
curl -X PATCH /bk/api/users/{user_id} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

PATCH /users/{user_id}

Change user details

Change user details

Body parameter

{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}

Parameters

NameInTypeRequiredDescription
user_idpathinteger(int64)trueID of user
bodybodyUserfalsesecret

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfullyNone

Response Schema

change_password​

Code samples

# You can also use wget
curl -X PUT /bk/api/users/{user_id}/password \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /users/{user_id}/password

Change user password

Change user password

Body parameter

{
"password_old": "string",
"password_new": "string"
}

Parameters

NameInTypeRequiredDescription
user_idpathinteger(int64)trueID of user
bodybodyUserPasswordfalsesecret

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfullyNone

Response Schema

Execution

get_flows​

Code samples

# You can also use wget
curl -X GET /bk/api/branches/{branch_id}/flows/{kind} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /branches/{branch_id}/flows/{kind}

List all runs

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of pet to return
kindpathstringtrueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
middlequeryinteger(int32)falseMiddle

Example responses

200 Response

{
"items": [
{
"id": 0,
"label": "string",
"branch_id": 0,
"created": "2019-08-24T14:15:22Z",
"project_id": 0,
"project_name": "string",
"base_branch_name": "string",
"branch_name": "string",
"runs": {},
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"args": {},
"kind": "string",
"artifacts": {
"public": {
"count": 0
}
},
"report_entries": [
{
"name": "string",
"url": "string"
}
]
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsFlows
defaultDefaultunexpected errorApiError

create_flow​

Code samples

# You can also use wget
curl -X POST /bk/api/branches/{branch_id}/flows/{kind} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /branches/{branch_id}/flows/{kind}

Create a run

Create a new run

Body parameter

{
"id": 0,
"label": "string",
"branch_id": 0,
"created": "2019-08-24T14:15:22Z",
"project_id": 0,
"project_name": "string",
"base_branch_name": "string",
"branch_name": "string",
"runs": {},
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"args": {},
"kind": "string",
"artifacts": {
"public": {
"count": 0
}
},
"report_entries": [
{
"name": "string",
"url": "string"
}
]
}

Parameters

NameInTypeRequiredDescription
branch_idpathinteger(int64)trueID of pet to return
kindpathstringtrueID of pet to return
bodybodyFlowfalseflow

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

get_flow​

Code samples

# You can also use wget
curl -X GET /bk/api/flows/{flow_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /flows/{flow_id}

List all results

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"label": "string",
"branch_id": 0,
"created": "2019-08-24T14:15:22Z",
"project_id": 0,
"project_name": "string",
"base_branch_name": "string",
"branch_name": "string",
"runs": {},
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"args": {},
"kind": "string",
"artifacts": {
"public": {
"count": 0
}
},
"report_entries": [
{
"name": "string",
"url": "string"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsFlow
defaultDefaultunexpected errorApiError

get_flow_runs​

Code samples

# You can also use wget
curl -X GET /bk/api/flows/{flow_id}/runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /flows/{flow_id}/runs

List all results

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"items": [
{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsRuns
defaultDefaultunexpected errorApiError

create_run​

Code samples

# You can also use wget
curl -X POST /bk/api/flows/{flow_id}/runs \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /flows/{flow_id}/runs

Create a run

Create a new run

Body parameter

{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return
bodybodyRunfalserun

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

get_flow_artifacts​

Code samples

# You can also use wget
curl -X GET /bk/api/flows/{flow_id}/artifacts \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /flows/{flow_id}/artifacts

List artifacts of given flow

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"items": [
{
"id": 0,
"flow_id": 0,
"run_id": 0,
"size": 0,
"path": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsArtifacts
defaultDefaultunexpected errorApiError

get_runs​

Code samples

# You can also use wget
curl -X GET /bk/api/stages/{stage_id}/runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /stages/{stage_id}/runs

List all runs

Parameters

NameInTypeRequiredDescription
stage_idpathinteger(int64)trueID of pet to return
limitqueryinteger(int32)falseHow many items to return at one time (max 100)

Example responses

200 Response

{
"items": [
{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsRuns
defaultDefaultunexpected errorApiError

get_run_jobs​

Code samples

# You can also use wget
curl -X GET /bk/api/runs/{run_id}/jobs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /runs/{run_id}/jobs

List jobs

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
include_coveredquerybooleanfalseInclude covered jobs

Example responses

200 Response

{
"items": [
{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsJobs
defaultDefaultunexpected errorApiError

get_run_issues​

Code samples

# You can also use wget
curl -X GET /bk/api/runs/{run_id}/issues \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /runs/{run_id}/issues

List run issues

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
issue_typesqueryarray[integer]falsenone
locationquerystringfalsenone
messagequerystringfalsenone
symbolquerystringfalsenone
min_agequeryintegerfalsenone
max_agequeryintegerfalsenone
jobquerystringfalsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"job_id": 0,
"job_name": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsIssues
defaultDefaultunexpected errorApiError

get_run_artifacts​

Code samples

# You can also use wget
curl -X GET /bk/api/runs/{run_id}/artifacts \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /runs/{run_id}/artifacts

List artifacts of given run

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)

Example responses

200 Response

{
"items": [
{
"id": 0,
"flow_id": 0,
"run_id": 0,
"size": 0,
"path": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsArtifacts
defaultDefaultunexpected errorApiError

get_run​

Code samples

# You can also use wget
curl -X GET /bk/api/runs/{run_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /runs/{run_id}

List all results

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsRun
defaultDefaultunexpected errorApiError

run_run_jobs​

Code samples

# You can also use wget
curl -X PUT /bk/api/runs/{run_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /runs/{run_id}

Start manual run or replay existing run ie. start again same jobs

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsRun
defaultDefaultunexpected errorApiError

force_run_analysis​

Code samples

# You can also use wget
curl -X POST /bk/api/runs/{run_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /runs/{run_id}

Start manual run or replay existing run ie. start again same jobs

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsRun
defaultDefaultunexpected errorApiError

cancel_run​

Code samples

# You can also use wget
curl -X DELETE /bk/api/runs/{run_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /runs/{run_id}

Cancel a run

Cancel a run

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of run

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted jobNone

Response Schema

create_job​

Code samples

# You can also use wget
curl -X POST /bk/api/jobs \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /jobs

Create a job

Create a new job

Body parameter

{
"run": 0
}

Parameters

NameInTypeRequiredDescription
bodybodyobjectfalseJob to create
» runbodyintegertruenone

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created runNone

Response Schema

get_job​

Code samples

# You can also use wget
curl -X GET /bk/api/jobs/{job_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /jobs/{job_id}

Get job details

Parameters

NameInTypeRequiredDescription
job_idpathinteger(int64)trueID of a job

Example responses

200 Response

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA jobJob
defaultDefaultunexpected errorApiError

job_rerun​

Code samples

# You can also use wget
curl -X PUT /bk/api/jobs/{job_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

PUT /jobs/{job_id}

Rerun a job

Parameters

NameInTypeRequiredDescription
job_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsJob
defaultDefaultunexpected errorApiError

delete_job​

Code samples

# You can also use wget
curl -X DELETE /bk/api/jobs/{job_id} \
-H 'Authorization: Bearer {access-token}'

DELETE /jobs/{job_id}

Cancel a job

Cancel a job

Parameters

NameInTypeRequiredDescription
job_idpathinteger(int64)trueID of job

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessfully deleted jobNone

Response Schema

get_job_logs​

Code samples

# You can also use wget
curl -X GET /bk/api/jobs/{job_id}/logs?start=0&limit=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /jobs/{job_id}/logs

Get a job logs

Get a job logs

Parameters

NameInTypeRequiredDescription
job_idpathintegertrueID of pet to return
startqueryintegertrueID of pet to return
limitqueryintegertrueID of pet to return
orderquerystringfalseID of pet to return
internalsquerybooleanfalseID of pet to return
filtersquerystringfalseID of pet to return

Example responses

200 Response

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"level": "string",
"job": 0,
"tool": "string",
"step": 0
}
],
"total": 0,
"bookmarks": {
"first": "string",
"last": "string"
},
"job": {
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsLogs
defaultDefaultunexpected errorApiError

get_step_logs​

Code samples

# You can also use wget
curl -X GET /bk/api/jobs/{job_id}/{step_idx}/logs?start=0&limit=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /jobs/{job_id}/{step_idx}/logs

Get a step logs

Get a step logs

Parameters

NameInTypeRequiredDescription
job_idpathintegertrueID of pet to return
step_idxpathintegertrueID of pet to return
startqueryintegertrueID of pet to return
limitqueryintegertrueID of pet to return
orderquerystringfalseID of pet to return
filtersquerystringfalseID of pet to return

Example responses

200 Response

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"level": "string",
"job": 0,
"tool": "string",
"step": 0
}
],
"total": 0,
"bookmarks": {
"first": "string",
"last": "string"
},
"job": {
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsLogs
defaultDefaultunexpected errorApiError

get_logs​

Code samples

# You can also use wget
curl -X GET /bk/api/logs?start=0&limit=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /logs

Get logs

Get logs

Parameters

NameInTypeRequiredDescription
branch_idqueryinteger(int64)falseID of branch
flow_kindqueryinteger(int64)falseFlow kind, 0 - CI, 1 - Dev
flow_idqueryinteger(int64)falseID of flow
run_idqueryinteger(int64)falseID of run
job_idqueryinteger(int64)falseID of job
step_idxqueryintegerfalseID of pet to return
agent_idqueryinteger(int64)falseID of agent
servicesqueryarray[string]falseList of services
levelquerystringfalselog level
startqueryintegertrueStart
limitqueryintegertrueLimit
orderquerystringfalseOrder, desc or asc

Example responses

200 Response

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"path": "string",
"lineno": "string",
"level": "string",
"branch": "string",
"flow_kind": "string",
"flow": "string",
"run": "string",
"job": "string",
"tool": "string",
"step": "string",
"agent": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of logsServicesLogs
defaultDefaultunexpected errorApiError

get_agent_jobs​

Code samples

# You can also use wget
curl -X GET /bk/api/agents/{agent_id}/jobs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /agents/{agent_id}/jobs

List jobs executed by given agent

Parameters

NameInTypeRequiredDescription
agent_idpathinteger(int64)trueID of agent
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)

Example responses

200 Response

{
"items": [
{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsJobs
defaultDefaultunexpected errorApiError

get_user_data​

Code samples

# You can also use wget
curl -X GET /bk/api/user_data \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /user_data

Get user data.

Get user data.

Parameters

NameInTypeRequiredDescription
scopequerystringfalseScope of user data
entity_idqueryinteger(int32)falseEntity ID

Example responses

200 Response

{
"data": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessfullyInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» datastringfalsenonenone

Results

get_flow_analysis​

Code samples

# You can also use wget
curl -X GET /bk/api/flows/{flow_id}/analysis \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /flows/{flow_id}/analysis

Results analysis of given flow

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"stats": {},
"recs_map": {},
"total_tests": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsFlowAnalysis
defaultDefaultunexpected errorApiError

get_branch_history​

Code samples

# You can also use wget
curl -X GET /bk/api/flows/{flow_id}/history?limit=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /flows/{flow_id}/history

Results history of till given flow

Parameters

NameInTypeRequiredDescription
flow_idpathinteger(int64)trueID of pet to return
limitqueryinteger(int64)truenumber of flows to return

Example responses

200 Response

{
"items": [
{}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKAn array of flowsBranchHistory
defaultDefaultunexpected errorApiError

get_run_results​

Code samples

# You can also use wget
curl -X GET /bk/api/runs/{run_id}/results \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /runs/{run_id}/results

List all results

Parameters

NameInTypeRequiredDescription
run_idpathinteger(int64)trueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)
sort_fieldquerystringfalsenone
sort_dirquerystringfalsenone
statusesqueryarray[integer]falsenone
changesqueryarray[integer]falsenone
min_agequeryintegerfalsenone
max_agequeryintegerfalsenone
min_instabilityqueryintegerfalsenone
max_instabilityqueryintegerfalsenone
test_case_textquerystringfalsenone
jobquerystringfalsenone
systemsqueryarray[integer]falsenone
groupsqueryarray[integer]falsenone

Example responses

200 Response

{
"items": [
{
"id": 0,
"job_id": 0,
"values": {}
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsResults
defaultDefaultunexpected errorApiError

get_result​

Code samples

# You can also use wget
curl -X GET /bk/api/test_case_results/{test_case_result_id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /test_case_results/{test_case_result_id}

List all results

Parameters

NameInTypeRequiredDescription
test_case_result_idpathinteger(int64)trueID of pet to return

Example responses

200 Response

{
"id": 0,
"job_id": 0,
"values": {}
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsResult
defaultDefaultunexpected errorApiError

get_result_history​

Code samples

# You can also use wget
curl -X GET /bk/api/test_case_results/{test_case_result_id}/history \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

GET /test_case_results/{test_case_result_id}/history

List all results

Parameters

NameInTypeRequiredDescription
test_case_result_idpathinteger(int64)trueID of pet to return
startqueryinteger(int32)falseHow many items to return at one time (max 100)
limitqueryinteger(int32)falseHow many items to return at one time (max 100)

Example responses

200 Response

{
"items": [
{
"id": 0,
"job_id": 0,
"values": {}
}
],
"total": 0
}

Responses

StatusMeaningDescriptionSchema
200OKA paged array of runsResults
defaultDefaultunexpected errorApiError

create_or_update_test_case_comment​

Code samples

# You can also use wget
curl -X POST /bk/api/test_case_results/{test_case_result_id}/comment \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}'

POST /test_case_results/{test_case_result_id}/comment

Create or update a comment to the result

Create or update a comment to the result

Body parameter

{
"text": "string",
"author": "string",
"state": 0
}

Parameters

NameInTypeRequiredDescription
test_case_result_idpathinteger(int64)trueID of test case result
bodybodyobjectfalseComment to create
» textbodystringfalsenone
» authorbodystringfalsenone
» statebodyinteger(int64)falsenone

Example responses

Responses

StatusMeaningDescriptionSchema
201CreatedSuccessfully created commentNone

Response Schema

Schemas

Session

{
"id": 0,
"token": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
tokenstringfalsenonenone

Users

{
"items": [
{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[User]falsenonenone
totalinteger(int64)falsenonenone

User

{
"id": 0,
"name": "string",
"password": "string",
"enabled": true,
"email": "string",
"superadmin": true
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
passwordstringfalsenonenone
enabledbooleanfalsenonenone
emailstringfalsenonenone
superadminbooleanfalsenonenone

UserPassword

{
"password_old": "string",
"password_new": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
password_oldstringfalsenonenone
password_newstringfalsenonenone

Flow

{
"id": 0,
"label": "string",
"branch_id": 0,
"created": "2019-08-24T14:15:22Z",
"project_id": 0,
"project_name": "string",
"base_branch_name": "string",
"branch_name": "string",
"runs": {},
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"args": {},
"kind": "string",
"artifacts": {
"public": {
"count": 0
}
},
"report_entries": [
{
"name": "string",
"url": "string"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
labelstringfalsenonenone
branch_idinteger(int64)falsenonenone
createdstring(date-time)falsenonenone
project_idinteger(int64)falsenonenone
project_namestringfalsenonenone
base_branch_namestringfalsenonenone
branch_namestringfalsenonenone
runsobjectfalsenonenone
stages[Stage]falsenonenone
argsobjectfalsenonenone
kindstringfalsenonenone
artifactsobjectfalsenonenone
» publicobjectfalsenonenone
»» countinteger(int64)falsenonenone
report_entries[ReportEntry]falsenonenone

Flows

{
"items": [
{
"id": 0,
"label": "string",
"branch_id": 0,
"created": "2019-08-24T14:15:22Z",
"project_id": 0,
"project_name": "string",
"base_branch_name": "string",
"branch_name": "string",
"runs": {},
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"args": {},
"kind": "string",
"artifacts": {
"public": {
"count": 0
}
},
"report_entries": [
{
"name": "string",
"url": "string"
}
]
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Flow]falsenonenone
totalinteger(int64)falsenonenone

Run

{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
labelstringfalsenonenone
project_idinteger(int64)falsenonenone
project_namestringfalsenonenone
branch_idinteger(int64)falsenonenone
branch_namestringfalsenonenone
flow_idinteger(int64)falsenonenone
flow_kindstringfalsenonenone
flow_labelstringfalsenonenone
stage_idinteger(int64)falsenonenone
stage_namestringfalsenonenone
argsobjectfalsenonenone
createdstring(date-time)falsenonenone
startedstring(date-time)falsenonenone
durationstringfalsenonenone
statestringfalsenonenone
jobs_errorintegerfalsenonenone
jobs_rerunintegerfalsenonenone
jobs_waitingintegerfalsenonenone
jobs_executingintegerfalsenonenone
jobs_processingintegerfalsenonenone
jobs_totalintegerfalsenonenone
tests_not_runintegerfalsenonenone
tests_passedintegerfalsenonenone
tests_totalintegerfalsenonenone
issues_totalintegerfalsenonenone
issues_newintegerfalsenonenone
artifacts_totalintegerfalsenonenone
report_entries[ReportEntry]falsenonenone
fix_cntintegerfalsenonenone
regr_cntintegerfalsenonenone
repo_dataobjectfalsenonenone
reasonstringfalsenonenone

Runs

{
"items": [
{
"id": 0,
"label": "string",
"project_id": 0,
"project_name": "string",
"branch_id": 0,
"branch_name": "string",
"flow_id": 0,
"flow_kind": "string",
"flow_label": "string",
"stage_id": 0,
"stage_name": "string",
"args": {},
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"duration": "string",
"state": "string",
"jobs_error": 0,
"jobs_rerun": 0,
"jobs_waiting": 0,
"jobs_executing": 0,
"jobs_processing": 0,
"jobs_total": 0,
"tests_not_run": 0,
"tests_passed": 0,
"tests_total": 0,
"issues_total": 0,
"issues_new": 0,
"artifacts_total": 0,
"report_entries": [
{
"name": "string",
"url": "string"
}
],
"fix_cnt": 0,
"regr_cnt": 0,
"repo_data": {},
"reason": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Run]falsenonenone
totalinteger(int64)falsenonenone

Result

{
"id": 0,
"job_id": 0,
"values": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)truenonenone
job_idinteger(int64)truenonenone
valuesobjectfalsenonenone

Results

{
"items": [
{
"id": 0,
"job_id": 0,
"values": {}
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Result]falsenonenone
totalinteger(int64)falsenonenone

Issue

{
"id": 0,
"job_id": 0,
"job_name": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)truenonenone
job_idinteger(int64)truenonenone
job_namestringfalsenonenone

Issues

{
"items": [
{
"id": 0,
"job_id": 0,
"job_name": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Issue]falsenonenone
totalinteger(int64)falsenonenone

Artifact

{
"id": 0,
"flow_id": 0,
"run_id": 0,
"size": 0,
"path": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
flow_idinteger(int64)falsenonenone
run_idinteger(int64)falsenonenone
sizeintegerfalsenonenone
pathstringfalsenonenone

Artifacts

{
"items": [
{
"id": 0,
"flow_id": 0,
"run_id": 0,
"size": 0,
"path": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Artifact]falsenonenone
totalinteger(int64)falsenonenone

FlowAnalysis

{
"stats": {},
"recs_map": {},
"total_tests": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
statsobjectfalsenonenone
recs_mapobjectfalsenonenone
total_testsintegerfalsenonenone

BranchHistory

{
"items": [
{}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[object]falsenonenone
totalintegerfalsenonenone

ReportEntry

{
"name": "string",
"url": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringfalsenonenone
urlstringfalsenonenone

Log

{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"level": "string",
"job": 0,
"tool": "string",
"step": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
timestringfalsenonenone
messagestringfalsenonenone
servicestringfalsenonenone
hoststringfalsenonenone
levelstringfalsenonenone
jobintegerfalsenonenone
toolstringfalsenonenone
stepintegerfalsenonenone

Logs

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"level": "string",
"job": 0,
"tool": "string",
"step": 0
}
],
"total": 0,
"bookmarks": {
"first": "string",
"last": "string"
},
"job": {
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Log]falsenonenone
totalinteger(int64)falsenonenone
bookmarksobjectfalsenonenone
» firststringfalsenonenone
» laststringfalsenonenone
jobJobfalsenonenone

RQJobNames

{
"items": [
{
"time": "string",
"name": "string",
"lines": 0
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
items[object]falsenonenone
» timestringfalsenonenone
» namestringfalsenonenone
» linesinteger(int64)falsenonenone

ServicesLog

{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"path": "string",
"lineno": "string",
"level": "string",
"branch": "string",
"flow_kind": "string",
"flow": "string",
"run": "string",
"job": "string",
"tool": "string",
"step": "string",
"agent": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
timestringfalsenonenone
messagestringfalsenonenone
servicestringfalsenonenone
hoststringfalsenonenone
pathstringfalsenonenone
linenostringfalsenonenone
levelstringfalsenonenone
branchstringfalsenonenone
flow_kindstringfalsenonenone
flowstringfalsenonenone
runstringfalsenonenone
jobstringfalsenonenone
toolstringfalsenonenone
stepstringfalsenonenone
agentstringfalsenonenone

ServicesLogs

{
"items": [
{
"time": "string",
"message": "string",
"service": "string",
"host": "string",
"path": "string",
"lineno": "string",
"level": "string",
"branch": "string",
"flow_kind": "string",
"flow": "string",
"run": "string",
"job": "string",
"tool": "string",
"step": "string",
"agent": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[ServicesLog]falsenonenone
totalinteger(int64)falsenonenone

LiveData

{
"error_logs_count": 0,
"authorized_agents": 0,
"non_authorized_agents": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
error_logs_countinteger(int64)falsenonenone
authorized_agentsinteger(int64)falsenonenone
non_authorized_agentsinteger(int64)falsenonenone

Job

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
createdstring(date-time)falsenonenone
startedstring(date-time)falsenonenone
finishedstring(date-time)falsenonenone
completedstring(date-time)falsenonenone
durationstringfalsenonenone
timeoutintegerfalsenonenone
namestringfalsenonenone
stateintegerfalsenonenone
completion_statusintegerfalsenonenone
notesstringfalsenonenone
run_idintegerfalsenonenone
steps[object]falsenonenone
agents_group_idintegerfalsenonenone
agents_group_namestringfalsenonenone
agent_idintegerfalsenonenone
agent_namestringfalsenonenone
executorstringfalsenonenone
systemstringfalsenonenone

Jobs

{
"items": [
{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"started": "2019-08-24T14:15:22Z",
"finished": "2019-08-24T14:15:22Z",
"completed": "2019-08-24T14:15:22Z",
"duration": "string",
"timeout": 0,
"name": "string",
"state": 0,
"completion_status": 0,
"notes": "string",
"run_id": 0,
"steps": [
{}
],
"agents_group_id": 0,
"agents_group_name": "string",
"agent_id": 0,
"agent_name": "string",
"executor": "string",
"system": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Job]falsenonenone
totalinteger(int64)falsenonenone

Project

{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
webhooksobjectfalsenonenone
branches[object]falsenonenone

Projects

{
"items": [
{
"id": 0,
"name": "string",
"webhooks": {},
"branches": [
{}
]
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Project]falsenonenone
totalinteger(int64)falsenonenone

Secret

{
"id": 0,
"name": "string",
"project_id": 0,
"project_name": "string",
"kind": "string",
"username": "string",
"key": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
project_idinteger(int64)falsenonenone
project_namestringfalsenonenone
kindstringfalsenonenone
usernamestringfalsenonenone
keystringfalsenonenone

Branch

{
"id": 0,
"created": "2019-08-24T14:15:22Z",
"name": "string",
"branch_name": "string",
"project_id": 0,
"project_name": "string",
"forking_model": "string",
"stages": [
{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}
],
"flows": {},
"retention_policy": {
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
createdstring(date-time)falsenonenone
namestringfalsenonenone
branch_namestringfalsenonenone
project_idinteger(int64)falsenonenone
project_namestringfalsenonenone
forking_modelstringfalsenonenone
stages[Stage]falsenonenone
flowsobjectfalsenonenone
retention_policyRetentionPolicyfalsenonenone

BranchSequence

{
"id": 0,
"branch_name": "string",
"branch_id": 0,
"stage_name": "string",
"stage_id": 0,
"kind": 0,
"value": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
branch_namestringfalsenonenone
branch_idinteger(int64)falsenonenone
stage_namestringfalsenonenone
stage_idinteger(int64)falsenonenone
kindinteger(int64)falsenonenone
valueinteger(int64)falsenonenone

BranchSequences

{
"items": [
{
"id": 0,
"branch_name": "string",
"branch_id": 0,
"stage_name": "string",
"stage_id": 0,
"kind": 0,
"value": 0
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[BranchSequence]falsenonenone
totalinteger(int64)falsenonenone

BranchStats

{
"id": 0,
"ci": {
"flows_total": 0,
"flows_last_week": 0,
"flows_last_month": 0,
"avg_duration_last_month": 0,
"avg_duration_last_week": 0,
"durations": [
{
"flow_label": "string",
"duration": 0
}
]
},
"dev": {
"flows_total": 0,
"flows_last_week": 0,
"flows_last_month": 0,
"avg_duration_last_month": 0,
"avg_duration_last_week": 0,
"durations": [
{
"flow_label": "string",
"duration": 0
}
]
}
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
ciBranchStatsByKindfalsenonenone
devBranchStatsByKindfalsenonenone

BranchStatsByKind

{
"flows_total": 0,
"flows_last_week": 0,
"flows_last_month": 0,
"avg_duration_last_month": 0,
"avg_duration_last_week": 0,
"durations": [
{
"flow_label": "string",
"duration": 0
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
flows_totalinteger(int64)falsenonenone
flows_last_weekinteger(int64)falsenonenone
flows_last_monthinteger(int64)falsenonenone
avg_duration_last_monthinteger(int64)falsenonenone
avg_duration_last_weekinteger(int64)falsenonenone
durations[object]falsenonenone
» flow_labelstringfalsenonenone
» durationinteger(int64)falsenonenone

RetentionPolicy

{
"ci_logs": 0,
"dev_logs": 0,
"ci_artifacts": 0,
"dev_artifacts": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
ci_logsinteger(int64)falsenonenone
dev_logsinteger(int64)falsenonenone
ci_artifactsinteger(int64)falsenonenone
dev_artifactsinteger(int64)falsenonenone

Stage

{
"id": 0,
"name": "string",
"branch_id": 0,
"branch_name": "string",
"schema": {
"parent": "string",
"triggers": {
"parent": true
},
"parameters": [
{
"name": "string",
"default": "string"
}
]
},
"schema_code": "string",
"enabled": true
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringtruenonenone
branch_idinteger(int64)falsenonenone
branch_namestringfalsenonenone
schemaobjectfalsenonenone
» parentstringfalsenonenone
» triggersobjectfalsenonenone
»» parentbooleanfalsenonenone
» parameters[object]falsenonenone
»» namestringfalsenonenone
»» defaultstringfalsenonenone
schema_codestringfalsenonenone
enabledbooleanfalsenonenone

StageSchemaJson

{
"stage_id": 0,
"schema": "string",
"error": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
stage_idinteger(int64)falsenonenone
schemastringfalsenonenone
errorstringfalsenonenone

StageSchemaCode

{
"schema_code": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
schema_codestringtruenonenone

StageSchedule

{
"schedules": [
{
"name": "string",
"job_id": "string",
"next_run_time": "string"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
schedules[object]falsenonenone
» namestringfalsenonenone
» job_idstringfalsenonenone
» next_run_timestringfalsenonenone

Agent

{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
addressstringfalsenonenone
authorizedbooleanfalsenonenone
ip_addressstringfalsenonenone
stateintegerfalsenonenone
disabledbooleanfalsenonenone
groups[object]falsenonenone
jobobjectfalsenonenone
last_seenstring(date-time)falsenonenone
host_infoobjectfalsenonenone
user_attrsobjectfalsenonenone

Agents

{
"items": [
{
"id": 0,
"name": "string",
"address": "string",
"authorized": true,
"ip_address": "string",
"state": 0,
"disabled": true,
"groups": [
{}
],
"job": {},
"last_seen": "2019-08-24T14:15:22Z",
"host_info": {},
"user_attrs": {}
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Agent]falsenonenone
totalinteger(int64)falsenonenone

Group

{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
project_namestringfalsenonenone
project_idintegerfalsenonenone
agents_countintegerfalsenonenone

Groups

{
"items": [
{
"id": 0,
"name": "string",
"project_name": "string",
"project_id": 0,
"agents_count": 0
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Group]falsenonenone
totalinteger(int64)falsenonenone

System

{
"id": 0,
"name": "string",
"executor": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone
executorstringfalsenonenone

Systems

{
"items": [
{
"id": 0,
"name": "string",
"executor": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[System]falsenonenone
totalinteger(int64)falsenonenone

AwsEc2Regions

{
"items": [
{
"Endpoint": "string",
"RegionName": "string",
"OptInStatus": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[object]falsenonenone
» Endpointstringfalsenonenone
» RegionNamestringfalsenonenone
» OptInStatusstringfalsenonenone
totalinteger(int64)falsenonenone

AwsEc2InstanceTypes

{
"items": [
{
"InstanceType": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[object]falsenonenone
» InstanceTypestringfalsenonenone
totalinteger(int64)falsenonenone

AzureLocations

{
"items": [
"string"
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[string]falsenonenone
totalinteger(int64)falsenonenone

AzureVmSizes

{
"items": [
"string"
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[string]falsenonenone
totalinteger(int64)falsenonenone

Settings

{
"general": {},
"notification": {},
"monitoring": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
generalobjectfalsenonenone
notificationobjectfalsenonenone
monitoringobjectfalsenonenone

SettingsWorkingState

{
"state": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
statestringfalsenonenone

Diagnostics

{}

Properties​

None

Tools

{
"items": [
{
"id": 0,
"name": "string"
}
],
"total": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
items[Tool]falsenonenone
totalinteger(int64)falsenonenone

Tool

{
"id": 0,
"name": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idinteger(int64)falsenonenone
namestringfalsenonenone

RQEntry

{
"func_name": "string",
"args": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
func_namestringfalsenonenone
argsstringfalsenonenone

ServerVersion

{
"version": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
versionstringfalsenonenone

ApiError

{
"code": 0,
"message": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
codeinteger(int32)truenonenone
messagestringtruenonenone