For the complete documentation index, see llms.txt. This page is also available as Markdown.

Labels

List labels at account, org or project level

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageinteger · min: 1Optional

The page to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

The maximum number of results to return.

Default: 30
inheritedbooleanOptional

The result should inherit entities from parent spaces.

Default: false
querystringOptional

The substring which is used to filter the labels by their key.

Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
get/labels
GET /code/api/v1/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "description": "text",
    "id": 1,
    "key": "text",
    "pullreq_count": 1,
    "repo_id": 1,
    "scope": 1,
    "space_id": 1,
    "type": "dynamic",
    "updated": 1,
    "updated_by": 1,
    "value_count": 1
  }
]

Create label at account, org or project level

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
descriptionstringOptional
keystringOptional
typestring · enumOptionalPossible values:
Responses
201

Created

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
post/labels
POST /code/api/v1/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "color": "blue",
  "description": "text",
  "key": "text",
  "type": "dynamic"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "description": "text",
  "id": 1,
  "key": "text",
  "pullreq_count": 1,
  "repo_id": 1,
  "scope": 1,
  "space_id": 1,
  "type": "dynamic",
  "updated": 1,
  "updated_by": 1,
  "value_count": 1
}

Save label and values at account, org or project level

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
Responses
200

OK

application/json
put/labels
PUT /code/api/v1/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "label": {
    "color": "blue",
    "description": "text",
    "id": 1,
    "key": "text",
    "type": "dynamic"
  },
  "values": [
    {
      "color": "blue",
      "id": 1,
      "value": "text"
    }
  ]
}
{
  "label": {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "description": "text",
    "id": 1,
    "key": "text",
    "pullreq_count": 1,
    "repo_id": 1,
    "scope": 1,
    "space_id": 1,
    "type": "dynamic",
    "updated": 1,
    "updated_by": 1,
    "value_count": 1
  },
  "values": [
    {
      "color": "blue",
      "created": 1,
      "created_by": 1,
      "id": 1,
      "label_id": 1,
      "updated": 1,
      "updated_by": 1,
      "value": "text"
    }
  ]
}

Delete label at account, org or project level

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
204

No Content

No content

delete/labels/{key}
DELETE /code/api/v1/labels/{key}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*

No content

Update label at account, org or project level

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
descriptionstringOptional
keystringOptional
typestring · enumOptionalPossible values:
Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
patch/labels/{key}
PATCH /code/api/v1/labels/{key}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "color": "blue",
  "description": "text",
  "key": "text",
  "type": "dynamic"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "description": "text",
  "id": 1,
  "key": "text",
  "pullreq_count": 1,
  "repo_id": 1,
  "scope": 1,
  "space_id": 1,
  "type": "dynamic",
  "updated": 1,
  "updated_by": 1,
  "value_count": 1
}

List label values at account, org or project level

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
get/labels/{key}/values
GET /code/api/v1/labels/{key}/values?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "id": 1,
    "label_id": 1,
    "updated": 1,
    "updated_by": 1,
    "value": "text"
  }
]

Create label value at account, org or project level

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
valuestringOptional
Responses
201

Created

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
post/labels/{key}/values
POST /code/api/v1/labels/{key}/values?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "color": "blue",
  "value": "text"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "id": 1,
  "label_id": 1,
  "updated": 1,
  "updated_by": 1,
  "value": "text"
}

Delete label value at account, org or project level

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
valuestringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
204

No Content

No content

delete/labels/{key}/values/{value}
DELETE /code/api/v1/labels/{key}/values/{value}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*

No content

Update label value at account, org or project level

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
keystringRequired
valuestringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
valuestringOptional
Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
patch/labels/{key}/values/{value}
PATCH /code/api/v1/labels/{key}/values/{value}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "color": "blue",
  "value": "text"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "id": 1,
  "label_id": 1,
  "updated": 1,
  "updated_by": 1,
  "value": "text"
}

List labels at repo level

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageinteger · min: 1Optional

The page to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

The maximum number of results to return.

Default: 30
inheritedbooleanOptional

The result should inherit entities from parent spaces.

Default: false
querystringOptional

The substring which is used to filter the labels by their key.

Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
get/repos/{repo_identifier}/labels
GET /code/api/v1/repos/{repo_identifier}/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "description": "text",
    "id": 1,
    "key": "text",
    "pullreq_count": 1,
    "repo_id": 1,
    "scope": 1,
    "space_id": 1,
    "type": "dynamic",
    "updated": 1,
    "updated_by": 1,
    "value_count": 1
  }
]

Create label at repo level

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
descriptionstringOptional
keystringOptional
typestring · enumOptionalPossible values:
Responses
201

Created

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
post/repos/{repo_identifier}/labels
POST /code/api/v1/repos/{repo_identifier}/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "color": "blue",
  "description": "text",
  "key": "text",
  "type": "dynamic"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "description": "text",
  "id": 1,
  "key": "text",
  "pullreq_count": 1,
  "repo_id": 1,
  "scope": 1,
  "space_id": 1,
  "type": "dynamic",
  "updated": 1,
  "updated_by": 1,
  "value_count": 1
}

Save label and values at repo level

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
Responses
200

OK

application/json
put/repos/{repo_identifier}/labels
PUT /code/api/v1/repos/{repo_identifier}/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "label": {
    "color": "blue",
    "description": "text",
    "id": 1,
    "key": "text",
    "type": "dynamic"
  },
  "values": [
    {
      "color": "blue",
      "id": 1,
      "value": "text"
    }
  ]
}
{
  "label": {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "description": "text",
    "id": 1,
    "key": "text",
    "pullreq_count": 1,
    "repo_id": 1,
    "scope": 1,
    "space_id": 1,
    "type": "dynamic",
    "updated": 1,
    "updated_by": 1,
    "value_count": 1
  },
  "values": [
    {
      "color": "blue",
      "created": 1,
      "created_by": 1,
      "id": 1,
      "label_id": 1,
      "updated": 1,
      "updated_by": 1,
      "value": "text"
    }
  ]
}

Delete label at repo level

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
204

No Content

No content

delete/repos/{repo_identifier}/labels/{key}
DELETE /code/api/v1/repos/{repo_identifier}/labels/{key}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*

No content

Update label at repo level

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
descriptionstringOptional
keystringOptional
typestring · enumOptionalPossible values:
Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
descriptionstringOptional
idintegerOptional
keystringOptional
pullreq_countintegerOptional
repo_idinteger · nullableOptional
scopeintegerOptional
space_idinteger · nullableOptional
typestring · enumOptionalPossible values:
updatedintegerOptional
updated_byintegerOptional
value_countintegerOptional
patch/repos/{repo_identifier}/labels/{key}
PATCH /code/api/v1/repos/{repo_identifier}/labels/{key}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "color": "blue",
  "description": "text",
  "key": "text",
  "type": "dynamic"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "description": "text",
  "id": 1,
  "key": "text",
  "pullreq_count": 1,
  "repo_id": 1,
  "scope": 1,
  "space_id": 1,
  "type": "dynamic",
  "updated": 1,
  "updated_by": 1,
  "value_count": 1
}

List label values at repo level

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
get/repos/{repo_identifier}/labels/{key}/values
GET /code/api/v1/repos/{repo_identifier}/labels/{key}/values?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "color": "blue",
    "created": 1,
    "created_by": 1,
    "id": 1,
    "label_id": 1,
    "updated": 1,
    "updated_by": 1,
    "value": "text"
  }
]

Create label value at repo level

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
valuestringOptional
Responses
201

Created

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
post/repos/{repo_identifier}/labels/{key}/values
POST /code/api/v1/repos/{repo_identifier}/labels/{key}/values?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "color": "blue",
  "value": "text"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "id": 1,
  "label_id": 1,
  "updated": 1,
  "updated_by": 1,
  "value": "text"
}

Delete label value at repo level

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
valuestringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
204

No Content

No content

delete/repos/{repo_identifier}/labels/{key}/values/{value}
DELETE /code/api/v1/repos/{repo_identifier}/labels/{key}/values/{value}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*

No content

Update label value at repo level

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
keystringRequired
valuestringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
colorstring · enumOptionalPossible values:
valuestringOptional
Responses
200

OK

application/json
colorstring · enumOptionalPossible values:
createdintegerOptional
created_byintegerOptional
idintegerOptional
label_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
valuestringOptional
patch/repos/{repo_identifier}/labels/{key}/values/{value}
PATCH /code/api/v1/repos/{repo_identifier}/labels/{key}/values/{value}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "color": "blue",
  "value": "text"
}
{
  "color": "blue",
  "created": 1,
  "created_by": 1,
  "id": 1,
  "label_id": 1,
  "updated": 1,
  "updated_by": 1,
  "value": "text"
}

List labels assigned to pull request

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
pullreq_numberintegerRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

pageinteger · min: 1Optional

The page to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

The maximum number of results to return.

Default: 30
assignablebooleanOptional

The result should contain all labels assignable to the pullreq.

Default: false
querystringOptional

The substring which is used to filter the labels by their key.

Responses
200

OK

application/json
get/repos/{repo_identifier}/pullreq/{pullreq_number}/labels
GET /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
  "label_data": [
    {
      "assigned": true,
      "assigned_value": {
        "color": "text",
        "id": 1,
        "value": "text"
      },
      "color": "blue",
      "id": 1,
      "key": "text",
      "scope": 1,
      "type": "dynamic",
      "values": [
        {
          "color": "text",
          "id": 1,
          "value": "text"
        }
      ]
    }
  ],
  "scope_data": [
    {
      "repository": {
        "default_branch": "text",
        "fork_id": 1,
        "id": 1,
        "identifier": "text",
        "parent_id": 1,
        "path": "text",
        "type": "text"
      },
      "scope": 1,
      "space": {
        "id": 1,
        "identifier": "text",
        "parent_id": 1,
        "path": "text"
      }
    }
  ]
}

Assign label to pull request

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
pullreq_numberintegerRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Body
label_idintegerOptional
valuestringOptional
value_idinteger · nullableOptional
Responses
200

OK

application/json
createdintegerOptional
created_byintegerOptional
label_idintegerOptional
pullreq_idintegerOptional
updatedintegerOptional
updated_byintegerOptional
value_idinteger · nullableOptional
put/repos/{repo_identifier}/pullreq/{pullreq_number}/labels
PUT /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "label_id": 1,
  "value": "text",
  "value_id": 1
}
{
  "created": 1,
  "created_by": 1,
  "label_id": 1,
  "pullreq_id": 1,
  "updated": 1,
  "updated_by": 1,
  "value_id": 1
}

Unassign label from pull request

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Path parameters
repo_identifierstringRequired
pullreq_numberintegerRequired
label_idintegerRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

Responses
204

No Content

No content

delete/repos/{repo_identifier}/pullreq/{pullreq_number}/labels/{label_id}
DELETE /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels/{label_id}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*

No content

Last updated

Was this helpful?