Entity Types
Use these operations to interact with entity types in Cortex.
Required permissions
Your API key must have the Edit entity types
permission.
Operations
List entity types
Response excludes Cortex default types of service, domain, and team.
When true, returns the built-in entity types that Cortex provides, such as rds
and s3
. Defaults to false.
Number of results to return per page, between 1 and 1000. Default 250.
250
Page number to return, 0-indexed. Default 0.
0
Successfully found entity types
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/catalog/definitions HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"definitions": [
{
"description": "text",
"name": "text",
"schema": {},
"source": "CORTEX",
"type": "text"
}
],
"page": 1,
"total": 1,
"totalPages": 1
}
Successfully found entity types
Entity type 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/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"description": "text",
"name": "text",
"schema": {},
"source": "CORTEX",
"type": "text"
}
Successfully created entity type
Failed to create entity type
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/catalog/definitions HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"description": "text",
"name": "text",
"schema": {},
"type": "text"
}
{
"description": "text",
"name": "text",
"schema": {},
"source": "CORTEX",
"type": "text"
}
When true, schema will be updated even if it results in broken schemas for existing entities. Defaults to false.
Successfully updated entity type
Failed to update entity type
Entity type not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
PUT /api/v1/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"description": "text",
"name": "text",
"schema": {}
}
{
"description": "text",
"name": "text",
"schema": {},
"source": "CORTEX",
"type": "text"
}
Successfully deleted entity type
Entity type not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
DELETE /api/v1/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Last updated
Was this helpful?