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
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
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 \"[email protected]\": [\n {\"id\": \"ul2da8159dbeefb974\", \"name\": \"Coding Language\", \"value\": \"Java\"},\n {\"id\": \"ul2da8159234bsdfas\", \"name\": \"Engineering Level\", \"value\": \"Senior\"}\n ],\n \"[email protected]\": [\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?