Teams
Use these operations to interact with teams in Cortex.
This page lists operations specific to team entities. See Catalog entities for API operations relating to all entity types (including teams).
Required permissions
Your API key must have the Edit entities
permission.
Operations
Warning: This API can return team details if you pass in a teamTag query parameter. However, this should only be used to retrieve team details if your team identifier contains non-alphanumeric characters. Otherwise, use the standard API under Teams
-> Retrieve team details
. When retrieving team details, the response will be a single team entity instead of a list.
Note: the response objects can also include an idpGroup
or cortexTeam
field depending on whether the team contains a group
or only consists of individually defined members
.
Include teams without members
false
Team identifier
my-team
Object containing a list of teams
Team 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/teams HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"teams": [
{
"catalogEntityTag": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
},
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text"
}
]
}
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Successfully found team
Note: the response objects can also include an idpGroup
or cortexTeam
field depending on whether the team contains a group
or only consists of individually defined members
.
Team 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/teams/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
Team memberships can be backed by an IdP group (from Okta, Azure AD, Google Groups, etc), or can be managed directly through Cortex. Each has a separate request shape, so make sure to select the correct example.
Use "IDP" for IdentityProviderBackedTeam and "CORTEX" for ManagedTeam
Successfully created a team
Bad Request
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/teams HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 468
{
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
For teams whose members are not backed by an IdP, use this API to update the team members. Note that it will replace the members in the team with the members defined in this request.
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Successfully updated team members
Bad Request
Forbidden
Team 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/teams/{tagOrId}/members HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"roleTags": [
"text"
]
}
],
"type": "text"
}
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
For teams whose members are not backed by an IdP, use this API to update the team members. Note that it will replace the members in the team with the members defined in this request. Warning: This API should only be used if your team identifier contains non-alphanumeric characters. Otherwise, use the standard API under Teams
.
Successfully updated team members
Bad Request
Forbidden
Team 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/teams/members HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"roleTags": [
"text"
]
}
],
"type": "text"
}
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
Warning: This API should only be used if your team identifier contains non-alphanumeric characters. Otherwise, use the standard API under Teams
.
Use "IDP" for IdentityProviderBackedTeam and "CORTEX" for ManagedTeam
Successfully updated team
Bad Request
Team 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/teams HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 451
{
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Use "IDP" for IdentityProviderBackedTeam and "CORTEX" for ManagedTeam
Successfully updated team
Bad Request
Team 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/teams/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 451
{
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Successfully archived team
Team 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/teams/{tagOrId}/archive HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Successfully unarchived team
Team 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/teams/{tagOrId}/unarchive HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"catalogEntityTag": "text",
"id": "text",
"isArchived": true,
"links": [
{
"description": "text",
"name": "text",
"type": "text",
"url": "text"
}
],
"metadata": {
"description": "text",
"name": "text",
"summary": "text"
},
"slackChannels": [
{
"description": "text",
"name": "text",
"notificationsEnabled": true
}
],
"teamTag": "text",
"type": "text",
"cortexTeam": {
"members": [
{
"description": "text",
"email": "text",
"name": "text",
"notificationsEnabled": true,
"role": {
"source": "text",
"tag": "text",
"type": "text"
},
"roles": [
{
"source": "text",
"tag": "text",
"type": "text"
}
]
}
]
}
}
Successfully deleted team
Team not found
Team delete is not allowed
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/teams HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{}
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Successfully deleted team
Team not found
Team delete is not allowed
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/teams/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{}
Last updated
Was this helpful?