Dependencies
Use these operations to interact with dependencies in Cortex.
Required permissions
Your API key must have the Edit entities permission.
Operations
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.
truefalseNumber of results to return per page, between 1 and 1000. Default 250.
250Page number to return, 0-indexed. Default 0.
0Successfully found entity dependencies
Entity dependencies 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/{callerTag}/dependencies?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}If a dependency exists between the callee and the caller, returns metadata about the edge.
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 found dependency
Invalid endpoint
Dependency 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/{callerTag}/dependencies/{calleeTag} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}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.
The entity tag (x-cortex-tag) for the callee entity ("from" entity)
The entity tag (x-cortex-tag) for the caller entity ("to" entity)
HTTP Method
POSTSuccessfully created dependency
Invalid endpoint
Entity not found
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/{callerTag}/dependencies/{calleeTag} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"description": "text",
"metadata": {}
}{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}This API allows you to create multiple dependencies for multiple entities at once.
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 created / updated dependencies
Cannot modify dependency that is defined in cortex.yaml
Entity 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/dependencies HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"values": {
"ANY_ADDITIONAL_PROPERTY": [
{
"description": "text",
"metadata": {},
"method": "text",
"path": "text",
"tag": "text"
}
]
}
}{
"values": {
"ANY_ADDITIONAL_PROPERTY": [
{
"description": "text",
"metadata": {},
"method": {},
"path": "text",
"tag": "text"
}
]
}
}If a dependency exists between two entities, replace the metadata with the payload. Note: This only supports dependencies created via the API.
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 dependency
Invalid endpoint
Entity 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/{callerTag}/dependencies/{calleeTag} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"description": "text",
"metadata": {}
}{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}Deletes a single dependency edge between the caller and the callee. Note: This is only supported for edges created via the API.
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 deleted dependency
Invalid endpoint
Dependency 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/{callerTag}/dependencies/{calleeTag} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}Deletes any outgoing dependencies from the entity. Note: this only deletes dependencies that were created via the API.
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 deleted dependencies
Caller 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/{callerTag}/dependencies HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"calleeTag": "text",
"calleeType": "text",
"callerTag": "text",
"callerType": "text",
"description": "text",
"metadata": {},
"method": "text",
"path": "text"
}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 deleted dependencies
Cannot modify dependency that is defined in cortex.yaml
Entity 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/dependencies HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"values": {
"ANY_ADDITIONAL_PROPERTY": [
{
"description": "text",
"metadata": {},
"method": "text",
"path": "text",
"tag": "text"
}
]
}
}No content
Last updated
Was this helpful?