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

get

List entity types

Response excludes Cortex default types of service, domain, and team.

Authorizations
AuthorizationstringRequired

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.

Query parameters
includeBuiltInbooleanOptional

When true, returns the built-in entity types that Cortex provides, such as rds and s3. Defaults to false.

pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
Responses
get
/api/v1/catalog/definitions
GET /api/v1/catalog/definitions?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "definitions": [
    {
      "description": "text",
      "name": "text",
      "schema": {},
      "source": "CORTEX",
      "type": "text"
    }
  ],
  "page": 1,
  "total": 1,
  "totalPages": 1
}

Retrieve entity type

get
Authorizations
AuthorizationstringRequired

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.

Path parameters
typestringRequired
Responses
get
/api/v1/catalog/definitions/{type}
GET /api/v1/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "description": "text",
  "name": "text",
  "schema": {},
  "source": "CORTEX",
  "type": "text"
}

Create entity type

post
Authorizations
AuthorizationstringRequired

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.

Body
descriptionstringOptional
namestringOptional
schemaobjectRequired
typestringRequired
Responses
post
/api/v1/catalog/definitions
POST /api/v1/catalog/definitions HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "description": "text",
  "name": "text",
  "schema": {},
  "type": "text"
}
{
  "description": "text",
  "name": "text",
  "schema": {},
  "source": "CORTEX",
  "type": "text"
}

Update entity type

put
Authorizations
AuthorizationstringRequired

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.

Path parameters
typestringRequired
Query parameters
forcebooleanOptional

When true, schema will be updated even if it results in broken schemas for existing entities. Defaults to false.

Body
descriptionstringOptional
namestringOptional
schemaobjectRequired
Responses
put
/api/v1/catalog/definitions/{type}
PUT /api/v1/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "description": "text",
  "name": "text",
  "schema": {}
}
{
  "description": "text",
  "name": "text",
  "schema": {},
  "source": "CORTEX",
  "type": "text"
}

Delete entity type

delete
Authorizations
AuthorizationstringRequired

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.

Path parameters
typestringRequired
Responses
delete
/api/v1/catalog/definitions/{type}
DELETE /api/v1/catalog/definitions/{type} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?