Eng Intel: User Labels
Use these operations to interact with user labels in Cortex Eng Intelligence.
Required permissions
Your API key must have the Configure user labels permission.
Operations
Retrieves a list of all available user labels.
API key must have the View Eng Intelligence permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Number of results to return per page, between 1 and 1000. Default 250.
250Page number to return, 0-indexed. Default 0.
0Successfully retrieved user labels
Current page number, 0-indexed
Total number of results
Total number of pages
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/eng-intel/labels?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"labels": [
{
"description": "text",
"id": "ul2da8159dbeefb974",
"name": "text",
"values": [
"text"
]
}
],
"page": 1,
"total": 1,
"totalPages": 1
}Get user label.
API key must have the View Eng Intelligence permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Successfully retrieved user label
Optional description of the user label
Unique, immutable, 18-character auto-generated identifier for the user label.
ul2da8159dbeefb974Unique name for the user label
Possible values for the user label
User label not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/eng-intel/labels/{id} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"description": "text",
"id": "ul2da8159dbeefb974",
"name": "text",
"values": [
"text"
]
}Assign user label values to user emails in bulk.
API key must have the Edit user labels permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Successfully updated user label assignments
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/eng-intel/labels/users HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 522
{
"userLabelAssignments": "\n {\n \"user@email.com\": [\n {\"id\": \"ul2da8159dbeefb974\", \"name\": \"Coding Language\", \"value\": \"Java\"},\n {\"id\": \"ul2da8159234bsdfas\", \"name\": \"Engineering Level\", \"value\": \"Senior\"}\n ],\n \"another_user@email.com\": [\n {\"id\": \"ul2da8159dbeefb974\", \"name\": \"Coding Language\", \"value\": \"Typescript\"},\n ]\n }\n "
}{
"userLabelAssignments": {
"ANY_ADDITIONAL_PROPERTY": [
{
"id": "text",
"name": "text",
"value": "text"
}
]
}
}Last updated
Was this helpful?