Mend Entities - Project Labels API
The Entities - Project Labels API from Mend — 3 operation(s) for entities - project labels.
The Entities - Project Labels API from Mend — 3 operation(s) for entities - project labels.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mend:mend-entities-project-labels-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mend Entities - Project Labels API
description: 'Mend''s enhanced SCA API enables automation of workflows in a REST compliant format. The API features:
+ Access for any user with Mend credentials, via a user key available in the user''s profile page in the Mend App.
+ Improved security with a JWT token per organization, which expires every 10 minutes.
+ Added scalability with support for pagination, filtering and sorting search results.
+ Broader functionality available programmatically.
+ New standard API documentation for easy navigation and search.
**Note:** To help you get started with the Mend SCA API 2.0, we recommend reviewing our onboarding guide -> Getting Started with Mend SCA API 2.0.
This resource covers initial setup, authentication instructions, and helpful tips to help you successfully begin working with the Mend SCA API 2.0. If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.'
version: 3.0.1
servers:
- url: https://api-saas.mend.io
description: Generated server url
security:
- bearer-key: []
tags:
- name: Entities - Project Labels
paths:
/api/v2.0/projects/{projectIdentifier}/labels/bulk:
put:
tags:
- Entities - Project Labels
summary: Add labels to a project (bulk)
description: Adds several labels to a project in one request. Each label is created if it does not already exist in the organization, then assigned to the project.
operationId: addProjectLabels
parameters:
- name: projectIdentifier
in: path
description: 'project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BulkLabelRequestDTO'
required: true
responses:
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageDTO'
/api/v2.0/projects/{projectIdentifier}/labels:
get:
tags:
- Entities - Project Labels
summary: Get project labels
description: Get project labels. A label can be a string or namespace:value pair that provide additional metadata to assist with project management.
operationId: getProjectLabels_1
parameters:
- name: projectIdentifier
in: path
description: 'project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
required: true
schema:
type: string
responses:
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/EntityLabelDTO'
put:
tags:
- Entities - Project Labels
summary: Add label to a project
description: Adds a new label to a project. A label can be a string or namespace:value pair that provide additional metadata to assist with project management.
operationId: addProjectLabel_1
parameters:
- name: projectIdentifier
in: path
description: 'project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LabelRequestDTO'
required: true
responses:
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageDTO'
delete:
tags:
- Entities - Project Labels
summary: Remove label from project
description: Removes a label from a project
operationId: removeProjectLabel_1
parameters:
- name: projectIdentifier
in: path
description: 'project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteLabelRequestDTO'
required: true
responses:
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageDTO'
/api/v2.0/projects/{projectIdentifier}/labels/{labelUuid}:
post:
tags:
- Entities - Project Labels
summary: Assign label to a project
description: Assigns a label to a project.
operationId: assignProjectLabel
parameters:
- name: projectIdentifier
in: path
description: 'project UUID (by running Entities - Product > Get Product Projects) or Project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
required: true
schema:
type: string
- name: labelUuid
in: path
required: true
schema:
type: string
responses:
'403':
description: Forbidden
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'400':
description: Bad Request
content:
'*/*':
schema:
$ref: '#/components/schemas/DWRResponseBase'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageDTO'
components:
schemas:
DWRResponseBase:
type: object
properties:
supportToken:
title: Support Token
type: string
example: 1171c60d
BulkLabelRequestDTO:
required:
- values
type: object
properties:
namespace:
title: Label Namespace
type: string
example: Label Namespace A
values:
type: array
items:
title: Label Value
type: string
example: Label Value A
EntityLabelDTO:
type: object
properties:
uuid:
type: string
namespace:
type: string
value:
type: string
displayName:
type: string
contextType:
type: string
system:
type: boolean
MessageDTO:
type: object
properties:
message:
title: message
type: string
example: Success!
LabelRequestDTO:
required:
- entityTokens
- namespace
- value
type: object
properties:
entityTokens:
type: array
items:
title: Entity Token
type: string
description: 'Depending on the value of contextType, this can be:
+ orgToken (org UUID by running Entities - Organization > Get User Organization) or Api Token (from the Mend SCA App: **Integrate** tab > **API Key**).
+ productToken (product UUID (by running Entities - Organization > Get Organization Products) or Product Token (from the Mend SCA App: **Integrate** tab > **Product Token**.
+ projectToken (project UUID by running Entities - Product > Get Product Projects) or project Token (from the Mend SCA App: **Integrate** tab > **Project Token**).'
example: 123e4567-e89b-12d3-a456-426655440000
namespace:
title: Label Namespace
type: string
example: Label Namespace A
value:
title: Label Value
type: string
example: Label Value A
DeleteLabelRequestDTO:
required:
- namespace
- value
type: object
properties:
namespace:
title: Label Namespace
type: string
example: Label Namespace A
value:
title: Label Value
type: string
example: Label A
securitySchemes:
bearer-key:
type: http
description: JWT token Bearer
scheme: bearer
bearerFormat: JWT